From: Takashi Sakamoto Date: Sun, 15 Nov 2020 14:04:32 +0000 (+0900) Subject: hwdep; obsolete library-wide GQuark for error reporting X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=refs%2Fheads%2Ftopic%2Fhwdep-error-reporting;p=alsa-gobject.git hwdep; 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 --- diff --git a/src/hwdep/privates.h b/src/hwdep/privates.h index 5e881bb..e94070c 100644 --- a/src/hwdep/privates.h +++ b/src/hwdep/privates.h @@ -8,12 +8,6 @@ G_BEGIN_DECLS -GQuark alsahwdep_error_quark(void); - -#define generate_error(err, errno) \ - g_set_error(err, alsahwdep_error_quark(), errno, \ - __FILE__ ":%d: %s", __LINE__, strerror(errno)) - void hwdep_device_info_refer_private(ALSAHwdepDeviceInfo *self, struct snd_hwdep_info **info); diff --git a/src/hwdep/query.c b/src/hwdep/query.c index affa1a3..8be7662 100644 --- a/src/hwdep/query.c +++ b/src/hwdep/query.c @@ -20,9 +20,6 @@ * descriptor */ -// For error handling. -G_DEFINE_QUARK("alsahwdep-error", alsahwdep_error) - // 'C' is required apart from emulation of Open Sound System. #define PREFIX_SYSNAME_TEMPLATE "hwC%u" #define HWDEP_SYSNAME_TEMPLATE "hwC%uD%u"