system/FatalError: remove the obsolete class Error overloads

This commit is contained in:
Max Kellermann 2016-11-10 12:40:38 +01:00
parent 4e16ea0f0a
commit 14885f25b4
2 changed files with 0 additions and 23 deletions

View File

@ -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

View File

@ -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