aboutsummaryrefslogtreecommitdiffstats
path: root/src/checks/level2/old-style-connect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/checks/level2/old-style-connect.cpp')
-rw-r--r--src/checks/level2/old-style-connect.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/checks/level2/old-style-connect.cpp b/src/checks/level2/old-style-connect.cpp
index 4f2b7365..ebc4acca 100644
--- a/src/checks/level2/old-style-connect.cpp
+++ b/src/checks/level2/old-style-connect.cpp
@@ -67,16 +67,6 @@ static bool classIsOk(StringRef className)
return className != "QDBusInterface";
}
-static CharSourceRange getImmediateExpansionRange(SourceLocation macroLoc, const SourceManager &sm)
-{
-#if LLVM_VERSION_MAJOR >= 7
- return sm.getImmediateExpansionRange(macroLoc);
-#else
- auto pair = sm.getImmediateExpansionRange(macroLoc);
- return CharSourceRange(SourceRange(pair.first, pair.second), false);
-#endif
-}
-
OldStyleConnect::OldStyleConnect(const std::string &name, ClazyContext *context)
: CheckBase(name, context, Option_CanIgnoreIncludes)
{