From 3f7bfaf3ea8fa97ccd66387404c88308892642e7 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 20 May 2025 19:22:39 +0200 Subject: [PATCH] xfree86: xf86.h: drop unused xf86GetModInDevEnabled() Not used anywhere, so no need to keep it anymore. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/common/xf86.h | 2 -- hw/xfree86/common/xf86Globals.c | 1 - hw/xfree86/common/xf86Helper.c | 6 ------ hw/xfree86/common/xf86Privstr.h | 2 -- 4 files changed, 11 deletions(-) diff --git a/hw/xfree86/common/xf86.h b/hw/xfree86/common/xf86.h index f321335c1..eca52df04 100644 --- a/hw/xfree86/common/xf86.h +++ b/hw/xfree86/common/xf86.h @@ -255,8 +255,6 @@ xf86GetVidModeAllowNonLocal(void); extern _X_EXPORT Bool xf86GetVidModeEnabled(void); extern _X_EXPORT Bool -xf86GetModInDevEnabled(void); -extern _X_EXPORT Bool xf86GetAllowMouseOpenFail(void); extern _X_EXPORT CARD32 xorgGetVersion(void); diff --git a/hw/xfree86/common/xf86Globals.c b/hw/xfree86/common/xf86Globals.c index 80c822484..a1d54ff12 100644 --- a/hw/xfree86/common/xf86Globals.c +++ b/hw/xfree86/common/xf86Globals.c @@ -115,7 +115,6 @@ xf86InfoRec xf86Info = { .allowMouseOpenFail = FALSE, .vidModeEnabled = TRUE, .vidModeAllowNonLocal = FALSE, - .miscModInDevEnabled = TRUE, .pmFlag = TRUE, #if defined(CONFIG_HAL) || defined(CONFIG_UDEV) || defined(CONFIG_WSCONS) .forceInputDevices = FALSE, diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c index 65e067494..93c2fc8e6 100644 --- a/hw/xfree86/common/xf86Helper.c +++ b/hw/xfree86/common/xf86Helper.c @@ -1401,12 +1401,6 @@ xf86GetVidModeEnabled(void) return xf86Info.vidModeEnabled; } -Bool -xf86GetModInDevEnabled(void) -{ - return xf86Info.miscModInDevEnabled; -} - Bool xf86GetAllowMouseOpenFail(void) { diff --git a/hw/xfree86/common/xf86Privstr.h b/hw/xfree86/common/xf86Privstr.h index afcf7285e..5a1db5d1c 100644 --- a/hw/xfree86/common/xf86Privstr.h +++ b/hw/xfree86/common/xf86Privstr.h @@ -75,8 +75,6 @@ typedef struct { Bool vidModeEnabled; /* VidMode extension enabled */ Bool vidModeAllowNonLocal; /* allow non-local VidMode * connections */ - Bool miscModInDevEnabled; /* Allow input devices to be - * changed */ Bool pmFlag; MessageType iglxFrom; XF86_GlxVisuals glxVisuals;