system/FatalError: remove GError support
This commit is contained in:
@@ -78,16 +78,6 @@ FatalError(const char *msg, const Error &error)
|
||||
FormatFatalError("%s: %s", msg, error.GetMessage());
|
||||
}
|
||||
|
||||
#ifdef HAVE_GLIB
|
||||
|
||||
void
|
||||
FatalError(const char *msg, GError *error)
|
||||
{
|
||||
FormatFatalError("%s: %s", msg, error->message);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
void
|
||||
FatalSystemError(const char *msg)
|
||||
{
|
||||
|
@@ -21,7 +21,6 @@
|
||||
#define MPD_FATAL_ERROR_HXX
|
||||
|
||||
#include "check.h"
|
||||
#include "gerror.h"
|
||||
#include "Compiler.h"
|
||||
|
||||
class Error;
|
||||
@@ -45,12 +44,6 @@ gcc_noreturn
|
||||
void
|
||||
FatalError(const char *msg, const Error &error);
|
||||
|
||||
#ifdef HAVE_GLIB
|
||||
gcc_noreturn
|
||||
void
|
||||
FatalError(const char *msg, GError *error);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Call this after a system call has failed that is not supposed to
|
||||
* fail. Prints the given message, the system error message (from
|
||||
|
Reference in New Issue
Block a user