mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Remove unused SimpleErrorReporter.
This commit is contained in:
6
format.h
6
format.h
@ -544,12 +544,6 @@ void FormatWinErrorMessage(
|
||||
fmt::Writer &out, int error_code, fmt::StringRef message);
|
||||
#endif
|
||||
|
||||
struct SimpleErrorReporter {
|
||||
void operator()(const void *, fmt::StringRef message) const {
|
||||
throw fmt::FormatError(message);
|
||||
}
|
||||
};
|
||||
|
||||
// Throws Exception(message) if format contains '}', otherwise throws
|
||||
// FormatError reporting unmatched '{'. The idea is that unmatched '{'
|
||||
// should override other errors.
|
||||
|
Reference in New Issue
Block a user