Removed two unused functions

This commit is contained in:
PKEuS 2015-04-09 20:54:07 +02:00
parent 4e5c5eb238
commit d5ad1def40
4 changed files with 0 additions and 42 deletions

View File

@ -3400,19 +3400,6 @@ const Function *Scope::getDestructor() const
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
unsigned int Scope::getNestedNonFunctions() const
{
unsigned int nested = 0;
std::list<Scope *>::const_iterator ni;
for (ni = nestedList.begin(); ni != nestedList.end(); ++ni) {
if ((*ni)->type != Scope::eFunction)
nested++;
}
return nested;
}
//---------------------------------------------------------------------------
bool SymbolDatabase::isCPP() const bool SymbolDatabase::isCPP() const
{ {
return _tokenizer->isCPP(); return _tokenizer->isCPP();

View File

@ -876,14 +876,6 @@ public:
functionMap.insert(make_pair(back->tokenDef->str(), back)); 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; bool hasDefaultConstructor() const;
AccessControl defaultAccess() const; AccessControl defaultAccess() const;

View File

@ -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) bool Token::Match(const Token *tok, const char pattern[], unsigned int varid)
{ {
const char *p = pattern; const char *p = pattern;

View File

@ -733,13 +733,6 @@ private:
*/ */
static const char *chrInFirstWord(const char *str, char c); static const char *chrInFirstWord(const char *str, char c);
/**
* Works almost like strlen() except
* if str has empty space &apos; &apos; character, that character is handled
* as if it were &apos;\\0&apos;
*/
static int firstWordLen(const char *str);
std::string _str; std::string _str;
Token *_next; Token *_next;