From 7c70c4e3832a2a8798c464c469889569d63c05bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Thu, 17 Feb 2022 18:26:27 +0100 Subject: [PATCH] pipewire: module-x11-bell: remove unnecessary member `xkb_event_base` is only ever set and never read. Remove it. --- src/modules/module-x11-bell.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/module-x11-bell.c b/src/modules/module-x11-bell.c index 7e279225e..44725c20e 100644 --- a/src/modules/module-x11-bell.c +++ b/src/modules/module-x11-bell.c @@ -91,7 +91,6 @@ struct impl { struct spa_hook module_listener; Display *display; - int xkb_event_base; }; static int play_sample(struct impl *impl) @@ -181,8 +180,7 @@ static int x11_connect(struct impl *impl, const char *name) major = XkbMajorVersion; minor = XkbMinorVersion; - if (!XkbQueryExtension(impl->display, NULL, &impl->xkb_event_base, - NULL, &major, &minor)) { + if (!XkbQueryExtension(impl->display, NULL, NULL, NULL, &major, &minor)) { pw_log_error("XkbQueryExtension() failed"); return -EIO; }