diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-06-13 13:43:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-06-13 13:43:12 +0200 |
commit | 136301b3db886d8eed7e7cd8e25d749ed417797b (patch) | |
tree | 43abc83cb81b6621fc3c61bf46f0f46edbe13981 | |
parent | 1812a6467defa244c2002dec6b055ad3983e5883 (diff) |
Remove unused member var
Change-Id: I0f4143cb2a34cf18e6c926432d707d84ef0ea579
-rw-r--r-- | compilerplugins/clang/badvectorinit.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/compilerplugins/clang/badvectorinit.cxx b/compilerplugins/clang/badvectorinit.cxx index b8c2dfe2d985..e544fd21e9f0 100644 --- a/compilerplugins/clang/badvectorinit.cxx +++ b/compilerplugins/clang/badvectorinit.cxx @@ -89,7 +89,7 @@ class BadVectorInit: public RecursiveASTVisitor<BadVectorInit>, public loplugin::Plugin { public: - explicit BadVectorInit(InstantiationData const & data): Plugin(data), mbInsideFunction(false) {} + explicit BadVectorInit(InstantiationData const & data): Plugin(data) {} virtual void run() override { @@ -101,15 +101,12 @@ public: bool VisitCXXMemberCallExpr(const CXXMemberCallExpr* ); private: StringRef getFilename(SourceLocation loc); - bool mbInsideFunction; std::set<const VarDecl*> suspectSet; }; bool BadVectorInit::TraverseFunctionDecl(FunctionDecl* decl) { - mbInsideFunction = true; bool ret = RecursiveASTVisitor::TraverseFunctionDecl(decl); - mbInsideFunction = false; suspectSet.clear(); return ret; } |