clang-tidy: Remove an unused private field. NFC
authorJustin Bogner <mail@justinbogner.com>
Thu, 18 Jun 2015 04:15:04 +0000 (04:15 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 18 Jun 2015 04:15:04 +0000 (04:15 +0000)
Clang was warning on this.

llvm-svn: 239988

clang-tools-extra/clang-tidy/misc/MacroRepeatedSideEffectsCheck.cpp

index 4e60164..a91e9da 100644 (file)
@@ -20,16 +20,14 @@ namespace misc {
 namespace {
 class MacroRepeatedPPCallbacks : public PPCallbacks {
 public:
-  MacroRepeatedPPCallbacks(ClangTidyCheck &Check, SourceManager &SM,
-                           Preprocessor &PP)
-      : Check(Check), SM(SM), PP(PP) {}
+  MacroRepeatedPPCallbacks(ClangTidyCheck &Check, Preprocessor &PP)
+      : Check(Check), PP(PP) {}
 
   void MacroExpands(const Token &MacroNameTok, const MacroDefinition &MD,
                     SourceRange Range, const MacroArgs *Args) override;
 
 private:
   ClangTidyCheck &Check;
-  SourceManager &SM;
   Preprocessor &PP;
 
   unsigned CountArgumentExpansions(const MacroInfo *MI,
@@ -135,7 +133,7 @@ void MacroRepeatedSideEffectsCheck::registerPPCallbacks(
     CompilerInstance &Compiler) {
   Compiler.getPreprocessor().addPPCallbacks(
       ::llvm::make_unique<MacroRepeatedPPCallbacks>(
-          *this, Compiler.getSourceManager(), Compiler.getPreprocessor()));
+          *this, Compiler.getPreprocessor()));
 }
 
 } // namespace misc