From c95748921af677da88fc20ad40eb9033d3dc84e4 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Sun, 14 Dec 2025 10:43:59 +0100 Subject: [PATCH] xfree86: drop obsolete xf86SetTVOut() and xf86SetRGBOut() These are only defined on NetBSD and not used anywhere, and not functional at all (just killing the Xserver). No need to carry them around any longer. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/os-support/bsd/i386_video.c | 27 -------------------------- hw/xfree86/os-support/xf86_OSproc.h | 4 ---- 2 files changed, 31 deletions(-) diff --git a/hw/xfree86/os-support/bsd/i386_video.c b/hw/xfree86/os-support/bsd/i386_video.c index 267e4f573..6c6fe7e53 100644 --- a/hw/xfree86/os-support/bsd/i386_video.c +++ b/hw/xfree86/os-support/bsd/i386_video.c @@ -268,30 +268,3 @@ xf86DisableIO(void) } #endif - -#ifdef __NetBSD__ -/***************************************************************************/ -/* Set TV output mode */ -/***************************************************************************/ -void -xf86SetTVOut(int mode) -{ - switch (xf86Info.consType) { - default: - FatalError("Xf86SetTVOut: Unsupported console"); - break; - } - return; -} - -void -xf86SetRGBOut(void) -{ - switch (xf86Info.consType) { - default: - FatalError("Xf86SetTVOut: Unsupported console"); - break; - } - return; -} -#endif diff --git a/hw/xfree86/os-support/xf86_OSproc.h b/hw/xfree86/os-support/xf86_OSproc.h index 74b71ea34..b030ebd6e 100644 --- a/hw/xfree86/os-support/xf86_OSproc.h +++ b/hw/xfree86/os-support/xf86_OSproc.h @@ -101,10 +101,6 @@ _XFUNCPROTOBEGIN extern _X_EXPORT Bool xf86EnableIO(void); extern _X_EXPORT void xf86DisableIO(void); -#ifdef __NetBSD__ -extern _X_EXPORT void xf86SetTVOut(int); -extern _X_EXPORT void xf86SetRGBOut(void); -#endif extern _X_EXPORT void xf86SlowBcopy(unsigned char *, unsigned char *, int); extern _X_EXPORT int xf86OpenSerial(XF86OptionPtr options); extern _X_EXPORT int xf86SetSerial(int fd, XF86OptionPtr options);