summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/flatten.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'compilerplugins/clang/flatten.cxx')
-rw-r--r--compilerplugins/clang/flatten.cxx2
1 files changed, 0 insertions, 2 deletions
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<CompoundStmt>(ifStmt->getThen())) {
if (compoundStmt->getLBracLoc().isValid()) {
- thenIsCompound = true;
thenString = stripOpenAndCloseBrace(thenString);
}
}