diff options
Diffstat (limited to 'db/commands.cpp')
| -rw-r--r-- | db/commands.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/db/commands.cpp b/db/commands.cpp index 770d035..30bdc54 100644 --- a/db/commands.cpp +++ b/db/commands.cpp @@ -127,7 +127,6 @@ namespace mongo { if ( strcmp(p, ".$cmd") != 0 ) return false; bool ok = false; - bool valid = false; BSONElement e = jsobj.firstElement(); map<string,Command*>::iterator i; @@ -138,7 +137,6 @@ namespace mongo { migrated over to the command object format. */ else if ( (i = _commands->find(e.fieldName())) != _commands->end() ) { - valid = true; string errmsg; Command *c = i->second; if ( c->adminOnly() && !startsWith(ns, "admin.") ) { |
