Remove obsolete Error constructor

This commit is contained in:
Alex Beregszaszi 2021-04-23 23:55:22 +01:00
parent 173a511809
commit 60189b4f61
2 changed files with 2 additions and 12 deletions

View File

@ -122,16 +122,6 @@ public:
Warning Warning
}; };
// TODO: remove this
Error(
ErrorId _errorId,
Type _type,
SourceLocation const& _location = SourceLocation(),
std::string const& _description = std::string()
):
Error(_errorId, _type, _description, _location)
{}
Error( Error(
ErrorId _errorId, ErrorId _errorId,
Type _type, Type _type,

View File

@ -105,8 +105,8 @@ ErrorList AnalysisFramework::filterErrors(ErrorList const& _errorList, bool _inc
newError = make_shared<Error>( newError = make_shared<Error>(
currentError->errorId(), currentError->errorId(),
currentError->type(), currentError->type(),
location ? *location : SourceLocation(), messagePrefix + " ....",
messagePrefix + " ...." location ? *location : SourceLocation()
); );
break; break;
} }