[devhelp] dh-error: spring clean-up
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] dh-error: spring clean-up
- Date: Fri, 12 May 2017 12:51:18 +0000 (UTC)
commit 086c64aafbd6e6a8391735cd95f0e8ec15b094d4
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri May 12 14:48:44 2017 +0200
dh-error: spring clean-up
Remove dead code and better namespace the string, "dh" is quite short.
src/dh-error.c | 2 +-
src/dh-error.h | 5 +----
2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/dh-error.c b/src/dh-error.c
index ff09df8..4d76317 100644
--- a/src/dh-error.c
+++ b/src/dh-error.c
@@ -26,7 +26,7 @@ dh_error_quark (void)
static GQuark q = 0;
if (q == 0) {
- q = g_quark_from_static_string ("dh-error-quark");
+ q = g_quark_from_static_string ("devhelp-error-quark");
}
return q;
diff --git a/src/dh-error.h b/src/dh-error.h
index b857706..78d6ffe 100644
--- a/src/dh-error.h
+++ b/src/dh-error.h
@@ -27,10 +27,7 @@ G_BEGIN_DECLS
#define DH_ERROR dh_error_quark ()
typedef enum {
- DH_ERROR_FILE_NOT_FOUND,
- DH_ERROR_MALFORMED_BOOK,
- DH_ERROR_INVALID_BOOK_TYPE,
- DH_ERROR_INTERNAL_ERROR
+ DH_ERROR_MALFORMED_BOOK
} DhError;
GQuark dh_error_quark (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]