Skip to content

Commit

Permalink
Remove UNUSED cvString from generator/parser
Browse files Browse the repository at this point in the history
Signed-off-by: John Bowler <[email protected]>
  • Loading branch information
jbowler committed Oct 10, 2023
1 parent 2c2fa34 commit 9d81756
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
21 changes: 0 additions & 21 deletions generator/parser/type_compiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,27 +127,6 @@ void TypeCompiler::visitName(NameAST *node)
_M_type = name_cc.qualifiedName();
}

#if 0 //UNUSED
QStringList TypeCompiler::cvString() const
{
QStringList lst;

foreach (int q, cv())
{
if (q == Token_const)
lst.append(QLatin1String("const"));
else if (q == Token_constexpr)
lst.append(QLatin1String("constexpr"));
else if (q == Token_volatile)
lst.append(QLatin1String("volatile"));
else if (q == Token_mutable)
lst.append(QLatin1String("mutable"));
}

return lst;
}
#endif

bool TypeCompiler::isConstant() const
{
return _M_cv.contains(Token_const);
Expand Down
2 changes: 0 additions & 2 deletions generator/parser/type_compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ class TypeCompiler: protected DefaultVisitor
bool isVolatile() const;
bool isMutable() const;

//QStringList cvString() const; //UNUSED

void run(TypeSpecifierAST *node);

protected:
Expand Down

0 comments on commit 9d81756

Please sign in to comment.