summaryrefslogtreecommitdiff
path: root/src/RpcMethod.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-05-15 22:51:35 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-05-15 22:51:35 +0900
commita4a4a1049099dd563ce3a3cb87102a1e1da6206a (patch)
treeb34a6c2681047926cd35fc5912346f8751f59e0e /src/RpcMethod.cc
parentfc0982587bc78648c918ae83deacca3e90d7e809 (diff)
Remove NULL check for pref because pref is always non NULL
Diffstat (limited to 'src/RpcMethod.cc')
-rw-r--r--src/RpcMethod.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/RpcMethod.cc b/src/RpcMethod.cc
index 7f936eab..e61f9926 100644
--- a/src/RpcMethod.cc
+++ b/src/RpcMethod.cc
@@ -90,10 +90,6 @@ void gatherOption
for(; first != last; ++first) {
const std::string& optionName = (*first).first;
const Pref* pref = option::k2p(optionName);
- if(!pref) {
- throw DL_ABORT_EX
- (fmt("We don't know how to deal with %s option", optionName.c_str()));
- }
const OptionHandler* handler = optionParser->find(pref);
if(!handler || !pred(handler)) {
// Just ignore the unacceptable options in this context.