diff --git a/compilerplugins/clang/flatten.cxx b/compilerplugins/clang/flatten.cxx index 145311144fee..adcc4972fd8f 100644 --- a/compilerplugins/clang/flatten.cxx +++ b/compilerplugins/clang/flatten.cxx @@ -141,10 +141,8 @@ bool Flatten::rewrite(const IfStmt* ifStmt) conditionString = "!(" + conditionString + ")"; std::string thenString = getSourceAsString(thenRange); - bool thenIsCompound = false; if (auto compoundStmt = dyn_cast(ifStmt->getThen())) { if (compoundStmt->getLBracLoc().isValid()) { - thenIsCompound = true; thenString = stripOpenAndCloseBrace(thenString); } }