Commit 14885f25 authored by Max Kellermann's avatar Max Kellermann

system/FatalError: remove the obsolete class Error overloads

parent 4e16ea0f
......@@ -19,7 +19,6 @@
#include "config.h"
#include "FatalError.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
#include "LogV.hxx"
......@@ -62,18 +61,6 @@ FormatFatalError(const char *fmt, ...)
Abort();
}
void
FatalError(const Error &error)
{
FatalError(error.GetMessage());
}
void
FatalError(const char *msg, const Error &error)
{
FormatFatalError("%s: %s", msg, error.GetMessage());
}
#ifdef WIN32
void
......
......@@ -27,8 +27,6 @@
#include <windef.h>
#endif
class Error;
/**
* Log the specified message and abort the process.
*/
......@@ -40,14 +38,6 @@ gcc_noreturn
void
FormatFatalError(const char *fmt, ...);
gcc_noreturn
void
FatalError(const Error &error);
gcc_noreturn
void
FatalError(const char *msg, const Error &error);
/**
* Call this after a system call has failed that is not supposed to
* fail. Prints the given message, the system error message (from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment