diff options
author | Benety Goh <benety@mongodb.com> | 2014-09-23 15:04:16 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2014-09-23 16:06:13 -0400 |
commit | a0aed05f92ea5a179534ff4b6d491abd759ed108 (patch) | |
tree | b92072a7847d9390bedaeaa938e3b79c7ff10530 /src/mongo/util/options_parser/option_section.cpp | |
parent | 812916f5335f54b1b3944889fedc28b78997ebf3 (diff) | |
download | mongo-a0aed05f92ea5a179534ff4b6d491abd759ed108.tar.gz |
SERVER-15096 make mongoshim --dbpath option mandatory
Diffstat (limited to 'src/mongo/util/options_parser/option_section.cpp')
-rw-r--r-- | src/mongo/util/options_parser/option_section.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/mongo/util/options_parser/option_section.cpp b/src/mongo/util/options_parser/option_section.cpp index a5cdb14e3e3..2dc3b9d0706 100644 --- a/src/mongo/util/options_parser/option_section.cpp +++ b/src/mongo/util/options_parser/option_section.cpp @@ -597,25 +597,5 @@ namespace optionenvironment { } } - OptionDescription* OptionSection::findOption(const std::string& dottedName ) { - for (std::list<OptionDescription>::iterator i = _options.begin(); - i != _options.end(); - ++i) { - OptionDescription& od = *i; - if ( dottedName == od._dottedName ) - return &od; - } - - for ( std::list<OptionSection>::iterator i = _subSections.begin(); - i != _subSections.end(); - ++i ) { - OptionSection& os = *i; - OptionDescription* od = os.findOption( dottedName ); - if ( od ) - return od; - } - return NULL; - } - } // namespace optionenvironment } // namespace mongo |