diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 7e7f94891..409cc058c 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -3400,19 +3400,6 @@ const Function *Scope::getDestructor() const //--------------------------------------------------------------------------- -unsigned int Scope::getNestedNonFunctions() const -{ - unsigned int nested = 0; - std::list::const_iterator ni; - for (ni = nestedList.begin(); ni != nestedList.end(); ++ni) { - if ((*ni)->type != Scope::eFunction) - nested++; - } - return nested; -} - -//--------------------------------------------------------------------------- - bool SymbolDatabase::isCPP() const { return _tokenizer->isCPP(); diff --git a/lib/symboldatabase.h b/lib/symboldatabase.h index 094c513c8..d9126fc43 100644 --- a/lib/symboldatabase.h +++ b/lib/symboldatabase.h @@ -876,14 +876,6 @@ public: functionMap.insert(make_pair(back->tokenDef->str(), back)); } - /** - * @brief get the number of nested scopes that are not functions - * - * @return the number of user defined types (class, struct, union) - * that are defined in this user defined type or namespace. - */ - unsigned int getNestedNonFunctions() const; - bool hasDefaultConstructor() const; AccessControl defaultAccess() const; diff --git a/lib/token.cpp b/lib/token.cpp index f33a87e22..ab7129d5e 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -573,20 +573,6 @@ const char *Token::chrInFirstWord(const char *str, char c) } } -int Token::firstWordLen(const char *str) -{ - int len = 0; - for (;;) { - if (*str == ' ' || *str == 0) - break; - - ++len; - ++str; - } - - return len; -} - bool Token::Match(const Token *tok, const char pattern[], unsigned int varid) { const char *p = pattern; diff --git a/lib/token.h b/lib/token.h index 1d2c48069..9e3cb5e48 100644 --- a/lib/token.h +++ b/lib/token.h @@ -733,13 +733,6 @@ private: */ static const char *chrInFirstWord(const char *str, char c); - /** - * Works almost like strlen() except - * if str has empty space ' ' character, that character is handled - * as if it were '\\0' - */ - static int firstWordLen(const char *str); - std::string _str; Token *_next;