Remove unnecessary 'visitDecl' default cases.

The default cases are unnecessary and provide no benefits so they should
just be removed.
This commit is contained in:
Mohammad Ghasembeigi
2015-12-06 03:08:08 +11:00
parent 480c9c2993
commit ee2ceca8d1
2 changed files with 0 additions and 7 deletions

View File

@@ -156,9 +156,6 @@ class UIdentVisitor : public ASTVisitor<UIdentVisitor,
public:
explicit UIdentVisitor(bool IsRef) : IsRef(IsRef) { }
/// TODO: reconsider whether having a default case is a good idea.
UIdent visitDecl(const Decl *D) { return UIdent(); }
UIdent visitFuncDecl(const FuncDecl *D);
UIdent visitVarDecl(const VarDecl *D);
UIdent visitExtensionDecl(const ExtensionDecl *D);