From da4e0e79455c433191b57d730b1e24491ea4d48e Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Fri, 13 Nov 2020 16:26:26 +0900 Subject: [PATCH] ctl: obsolete library-wide GQuark for error reporting This commit obsoletes library-wide GQuark. This is not exported, thus it doesn't lose backward compatibility. Signed-off-by: Takashi Sakamoto --- src/ctl/privates.h | 6 ------ src/ctl/query.c | 3 --- 2 files changed, 9 deletions(-) diff --git a/src/ctl/privates.h b/src/ctl/privates.h index 6f9c304..3ff6149 100644 --- a/src/ctl/privates.h +++ b/src/ctl/privates.h @@ -16,12 +16,6 @@ G_BEGIN_DECLS -GQuark alsactl_error_quark(void); - -#define generate_error(err, errno) \ - g_set_error(err, alsactl_error_quark(), errno, \ - __FILE__ ":%d: %s", __LINE__, strerror(errno)) - void ctl_card_info_refer_private(ALSACtlCardInfo *self, struct snd_ctl_card_info **info); diff --git a/src/ctl/query.c b/src/ctl/query.c index 998d77a..dcd2cd3 100644 --- a/src/ctl/query.c +++ b/src/ctl/query.c @@ -16,9 +16,6 @@ * descriptor */ -// For error handling. -G_DEFINE_QUARK("alsactl-error", alsactl_error) - #define CARD_SYSNAME_TEMPLATE "card%u" #define CONTROL_SYSNAME_TEMPLATE "controlC%u" -- 2.47.3