summaryrefslogtreecommitdiffstats
path: root/compilerplugins
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-03-30 13:48:45 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-03-30 13:48:45 +0200
commit2688a8829771289d576415a9b933a1c30197cf01 (patch)
treee10f9dae89c6240a79654115d57892bd2d8606e1 /compilerplugins
parentReplace scary reinterpret_casts with OUString::unacquired (diff)
downloadcore-2688a8829771289d576415a9b933a1c30197cf01.tar.gz
core-2688a8829771289d576415a9b933a1c30197cf01.zip
Remove leftover debug code
Change-Id: I874fc4d677abb2646bffb4331a220f3812443b66
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/redundantcast.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/compilerplugins/clang/redundantcast.cxx b/compilerplugins/clang/redundantcast.cxx
index 22e2ddf0094a..007a63873c9f 100644
--- a/compilerplugins/clang/redundantcast.cxx
+++ b/compilerplugins/clang/redundantcast.cxx
@@ -115,10 +115,6 @@ bool RedundantCast::VisitImplicitCastExpr(const ImplicitCastExpr * expr) {
Expr const * e = expr->getSubExpr()->IgnoreParenImpCasts();
while (isa<CXXConstCastExpr>(e)) {
auto cc = dyn_cast<CXXConstCastExpr>(e);
-if(!cc->getSubExpr()->getType()->isPointerType()){
- report(DiagnosticsEngine::Warning,"TODO",cc->getExprLoc())<<expr->getSourceRange();
- return true;
-}
if (expr->getType()->getAs<PointerType>()->getPointeeType()
.isAtLeastAsQualifiedAs(
cc->getSubExpr()->getType()