diff --git a/src/macro-core/macro-segment.cpp b/src/macro-core/macro-segment.cpp index 0250bc83d..a73276ad1 100644 --- a/src/macro-core/macro-segment.cpp +++ b/src/macro-core/macro-segment.cpp @@ -146,7 +146,6 @@ void MacroSegment::InvalidateTempVarValues() std::optional MacroSegment::GetTempVar(const std::string &id) const { - TempVariable *result = nullptr; for (auto &var : _tempVariables) { if (var.ID() == id) { return var;