From 7c60120c029437afc32ebe24543a75f2ca180d07 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 5 May 2025 11:53:01 +0200 Subject: [PATCH] xfree86: fbdevhw: drop unused fbdevHWFreeRec() Not used anywhere, neither internal nor external (drivers), so no need to keep it any longer. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/fbdevhw/fbdevhw.c | 9 --------- hw/xfree86/fbdevhw/fbdevhw.h | 2 -- hw/xfree86/fbdevhw/fbdevhwstub.c | 5 ----- 3 files changed, 16 deletions(-) diff --git a/hw/xfree86/fbdevhw/fbdevhw.c b/hw/xfree86/fbdevhw/fbdevhw.c index 7ef13a944..c42395515 100644 --- a/hw/xfree86/fbdevhw/fbdevhw.c +++ b/hw/xfree86/fbdevhw/fbdevhw.c @@ -96,15 +96,6 @@ fbdevHWGetRec(ScrnInfoPtr pScrn) return TRUE; } -void -fbdevHWFreeRec(ScrnInfoPtr pScrn) -{ - if (fbdevHWPrivateIndex < 0) - return; - free(FBDEVHWPTR(pScrn)); - FBDEVHWPTRLVAL(pScrn) = NULL; -} - int fbdevHWGetFD(ScrnInfoPtr pScrn) { diff --git a/hw/xfree86/fbdevhw/fbdevhw.h b/hw/xfree86/fbdevhw/fbdevhw.h index a4d799d65..f6e76c03e 100644 --- a/hw/xfree86/fbdevhw/fbdevhw.h +++ b/hw/xfree86/fbdevhw/fbdevhw.h @@ -11,8 +11,6 @@ #define FBDEVHW_TEXT 3 /* Text/attributes */ #define FBDEVHW_VGA_PLANES 4 /* EGA/VGA planes */ -extern _X_EXPORT void fbdevHWFreeRec(ScrnInfoPtr pScrn); - extern _X_EXPORT int fbdevHWGetFD(ScrnInfoPtr pScrn); extern _X_EXPORT Bool fbdevHWProbe(struct pci_device *pPci, char *device, diff --git a/hw/xfree86/fbdevhw/fbdevhwstub.c b/hw/xfree86/fbdevhw/fbdevhwstub.c index 8a489050a..4996a049d 100644 --- a/hw/xfree86/fbdevhw/fbdevhwstub.c +++ b/hw/xfree86/fbdevhw/fbdevhwstub.c @@ -8,11 +8,6 @@ /* Stubs for the static server on platforms that don't support fbdev */ -void -fbdevHWFreeRec(ScrnInfoPtr pScrn) -{ -} - Bool fbdevHWProbe(struct pci_device *pPci, char *device, char **namep) {