Skip to content

Commit f1ce37c

Browse files
Update checkinternal.cpp
1 parent bcd5aa6 commit f1ce37c

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

lib/checkinternal.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -337,13 +337,6 @@ void CheckInternal::checkExtraWhitespace()
337337
}
338338
}
339339

340-
void CheckInternal::multiComparePatternError(const Token* tok, const std::string& pattern, const std::string &funcname)
341-
{
342-
reportError(tok, Severity::error, "multiComparePatternError",
343-
"Bad multicompare pattern (a %cmd% must be first unless it is %or%,%op%,%cop%,%name%,%oror%) inside Token::" + funcname + "() call: \"" + pattern + "\""
344-
);
345-
}
346-
347340
void CheckInternal::simplePatternError(const Token* tok, const std::string& pattern, const std::string &funcname)
348341
{
349342
reportError(tok, Severity::warning, "simplePatternError",
@@ -409,7 +402,6 @@ void CheckInternal::runChecks(const Tokenizer &tokenizer, ErrorLogger *errorLogg
409402
void CheckInternal::getErrorMessages(ErrorLogger *errorLogger, const Settings *settings) const
410403
{
411404
CheckInternal c(nullptr, settings, errorLogger);
412-
c.multiComparePatternError(nullptr, ";|%type%", "Match");
413405
c.simplePatternError(nullptr, "class {", "Match");
414406
c.complexPatternError(nullptr, "%type% ( )", "Match");
415407
c.missingPercentCharacterError(nullptr, "%num", "Match");

0 commit comments

Comments
 (0)