summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/cstylecast.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/cstylecast.cxx')
-rw-r--r--compilerplugins/clang/cstylecast.cxx8
1 files changed, 0 insertions, 8 deletions
diff --git a/compilerplugins/clang/cstylecast.cxx b/compilerplugins/clang/cstylecast.cxx
index dadba429bce9..9d96ac6d714c 100644
--- a/compilerplugins/clang/cstylecast.cxx
+++ b/compilerplugins/clang/cstylecast.cxx
@@ -165,14 +165,6 @@ bool CStyleCast::VisitCStyleCastExpr(const CStyleCastExpr * expr) {
expr->getTypeAsWritten()))
{
perf = "const_cast";
- } else if (expr->getSubExprAsWritten()->getType() != expr->getType()
- && (!t1.isMoreQualifiedThan(t2)
- || ((t1.getUnqualifiedType().getCanonicalType()
- .getTypePtr())
- != (t2.getUnqualifiedType().getCanonicalType()
- .getTypePtr()))))
- {
- return true;
}
}
std::string incompFrom;