Merge pull request #11308 from ethereum/error-cleanup

Remove obsolete Error constructor
This commit is contained in:
Alex Beregszaszi 2021-04-24 01:57:21 +01:00 committed by GitHub
commit eed0bf580b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 12 deletions

View File

@ -122,16 +122,6 @@ public:
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(
ErrorId _errorId,
Type _type,

View File

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