Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
e8789d7c
Commit
e8789d7c
authored
Feb 18, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system/FatalError: remove GError support
parent
0053cd0d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
43 deletions
+0
-43
Makefile.am
Makefile.am
+0
-1
gerror.h
src/gerror.h
+0
-25
FatalError.cxx
src/system/FatalError.cxx
+0
-10
FatalError.hxx
src/system/FatalError.hxx
+0
-7
No files found.
Makefile.am
View file @
e8789d7c
...
...
@@ -55,7 +55,6 @@ src_mpd_LDADD = \
mpd_headers
=
\
src/check.h
\
src/gerror.h
\
src/AudioCompress/config.h
\
src/AudioCompress/compress.h
\
src/open.h
\
...
...
src/gerror.h
deleted
100644 → 0
View file @
0053cd0d
/*
* Copyright (C) 2003-2014 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef MPD_GERROR_H
#define MPD_GERROR_H
typedef
struct
_GError
GError
;
#endif
src/system/FatalError.cxx
View file @
e8789d7c
...
...
@@ -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
)
{
...
...
src/system/FatalError.hxx
View file @
e8789d7c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment