mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user