Skip to content

Commit eed0bf5

Browse files
authored
Merge pull request #11308 from ethereum/error-cleanup
Remove obsolete Error constructor
2 parents 173a511 + 60189b4 commit eed0bf5

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

liblangutil/Exceptions.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -122,16 +122,6 @@ class Error: virtual public util::Exception
122122
Warning
123123
};
124124

125-
// TODO: remove this
126-
Error(
127-
ErrorId _errorId,
128-
Type _type,
129-
SourceLocation const& _location = SourceLocation(),
130-
std::string const& _description = std::string()
131-
):
132-
Error(_errorId, _type, _description, _location)
133-
{}
134-
135125
Error(
136126
ErrorId _errorId,
137127
Type _type,

test/libsolidity/AnalysisFramework.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ ErrorList AnalysisFramework::filterErrors(ErrorList const& _errorList, bool _inc
105105
newError = make_shared<Error>(
106106
currentError->errorId(),
107107
currentError->type(),
108-
location ? *location : SourceLocation(),
109-
messagePrefix + " ...."
108+
messagePrefix + " ....",
109+
location ? *location : SourceLocation()
110110
);
111111
break;
112112
}

0 commit comments

Comments
 (0)