From 5ea8854d3cac2d31b86838f09bdc628ba7b6a4de Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 19 Jan 2018 13:52:24 +0100 Subject: -Werror,-Wunused-variable Change-Id: I1bcfe0dabd61a2157bc4a48ea54413882ecaaabc --- compilerplugins/clang/emptyif.cxx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/compilerplugins/clang/emptyif.cxx b/compilerplugins/clang/emptyif.cxx index d9348e660378..6eac86b6bcc7 100644 --- a/compilerplugins/clang/emptyif.cxx +++ b/compilerplugins/clang/emptyif.cxx @@ -30,13 +30,7 @@ public: { } - virtual void run() override - { - StringRef fn(compiler.getSourceManager() - .getFileEntryForID(compiler.getSourceManager().getMainFileID()) - ->getName()); - TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); - } + virtual void run() override { TraverseDecl(compiler.getASTContext().getTranslationUnitDecl()); } bool VisitIfStmt(IfStmt const*); -- cgit v1.2.3