diff --git a/Source/DoxygenTranslator/src/DoxygenParser.cpp b/Source/DoxygenTranslator/src/DoxygenParser.cpp index 5b235f91e..13c40dee1 100644 --- a/Source/DoxygenTranslator/src/DoxygenParser.cpp +++ b/Source/DoxygenTranslator/src/DoxygenParser.cpp @@ -102,17 +102,6 @@ std::string DoxygenParser::stringToLower(const std::string &stringToConvert) return result; } -bool DoxygenParser::findCommand(const std::string &smallString) -{ - // I'm not sure if we can really do so, because there are different commands - // in doxygenCommands and original commandArray - - std::map::iterator it = doxygenCommands.find( - stringToLower(smallString)); - - return it != doxygenCommands.end(); // returns true if command was found -} - bool DoxygenParser::isSectionIndicator(const std::string &smallString) { @@ -1021,7 +1010,7 @@ bool DoxygenParser::isStartOfDoxyCommentChar(char c) bool DoxygenParser::addDoxyCommand(DoxygenParser::TokenList &tokList, const std::string &cmd) { - if (findCommand(cmd)) { + if (commandBelongs(cmd) != NONE) { tokList.push_back(Token(COMMAND, cmd)); return true; } else { diff --git a/Source/DoxygenTranslator/src/DoxygenParser.h b/Source/DoxygenTranslator/src/DoxygenParser.h index 0b1212d4b..4df978fc7 100644 --- a/Source/DoxygenTranslator/src/DoxygenParser.h +++ b/Source/DoxygenTranslator/src/DoxygenParser.h @@ -104,11 +104,6 @@ private: */ std::string stringToLower(const std::string &stringToConvert); - /* - * Finds out if a command exists (is a possible command) - * returns -1 if no match is found - */ - bool findCommand(const std::string &smallString); /* * isSectionIndicator returns a boolean if the command is a section indicator * This is a helper method for finding the end of a paragraph