aboutsummaryrefslogtreecommitdiffstats
path: root/src/QtUtils.cpp
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2017-06-04 20:18:25 +0100
committerSergio Martins <smartins@kde.org>2017-06-04 20:21:57 +0100
commit2d2efed6fa74ec3a71b1582bd74ebce16b032105 (patch)
treef13e288abb1939a26cc3927276968bfb86ec00f6 /src/QtUtils.cpp
parent1adbc1c8febb206c3204bb65e2b42e724de717ef (diff)
Refactor function so it can be reused
Diffstat (limited to 'src/QtUtils.cpp')
-rw-r--r--src/QtUtils.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/QtUtils.cpp b/src/QtUtils.cpp
index 0cf4f7de..5d1ffbb2 100644
--- a/src/QtUtils.cpp
+++ b/src/QtUtils.cpp
@@ -146,19 +146,6 @@ bool QtUtils::isJavaIterator(CXXMemberCallExpr *call)
return isJavaIterator(call->getRecordDecl());
}
-clang::ValueDecl *QtUtils::signalSenderForConnect(clang::CallExpr *call)
-{
- if (!call || call->getNumArgs() < 1)
- return nullptr;
-
- Expr *firstArg = call->getArg(0);
- auto declRef = isa<DeclRefExpr>(firstArg) ? cast<DeclRefExpr>(firstArg) : HierarchyUtils::getFirstChildOfType2<DeclRefExpr>(firstArg);
- if (!declRef)
- return nullptr;
-
- return declRef->getDecl();
-}
-
bool QtUtils::isQtContainer(QualType t)
{
CXXRecordDecl *record = TypeUtils::typeAsRecord(t);