Skip to content

Commit 3fea32a

Browse files
author
Your Name
committed
Remove unused function
1 parent 8c7ee92 commit 3fea32a

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

lib/forwardanalyzer.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -351,18 +351,6 @@ namespace {
351351
return Token::findmatch(endBlock->link(), "goto|break", endBlock);
352352
}
353353

354-
bool hasInnerReturnScope(const Token* start, const Token* end) const {
355-
for (const Token* tok=start; tok != end; tok = tok->previous()) {
356-
if (Token::simpleMatch(tok, "}")) {
357-
const Token* ftok = nullptr;
358-
const bool r = isReturnScope(tok, settings.library, &ftok);
359-
if (r)
360-
return true;
361-
}
362-
}
363-
return false;
364-
}
365-
366354
bool isEscapeScope(const Token* endBlock, bool& unknown) const {
367355
const Token* ftok = nullptr;
368356
const bool r = isReturnScope(endBlock, settings.library, &ftok);

0 commit comments

Comments
 (0)