From 147967f67d4976a87ed07fe11b59b174907f5d43 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 10 Jul 2012 02:03:25 +0100 Subject: Remove Xorg-specific extensions from non-Xorg miinitext miinitext.c had a completely separate codepath for non-Xorg servers, which included tests for Xorg-specific extensions such as XFree86-VidMode, which were external even to the Xorg DDX. So we can just remove them, and the associated #undefs. Signed-off-by: Daniel Stone Reviewed-by: Peter Hutterer Signed-off-by: Keith Packard --- mi/miinitext.c | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/mi/miinitext.c b/mi/miinitext.c index 69ed97bb9..d76d79676 100644 --- a/mi/miinitext.c +++ b/mi/miinitext.c @@ -83,9 +83,6 @@ SOFTWARE. #include #undef XV #undef DBE -#undef XF86VIDMODE -#undef XFreeXDGA -#undef XF86DRI #undef SCREENSAVER #undef RANDR #undef XFIXES @@ -102,17 +99,10 @@ SOFTWARE. #ifdef HAVE_KDRIVE_CONFIG_H #include -/* there must be a better way... */ -#undef XFreeXDGA -#undef XF86DRI -#undef XF86VIDMODE #endif #ifdef HAVE_XGL_CONFIG_H #include -#undef XFreeXDGA -#undef XF86DRI -#undef XF86VIDMODE #endif #include "misc.h" @@ -323,20 +313,10 @@ InitExtensions(int argc, char *argv[]) ScreenSaverExtensionInit(); #endif -#if !defined(NO_HW_ONLY_EXTS) -#if defined(XF86VIDMODE) - if (!noXFree86VidModeExtension) - XFree86VidModeExtensionInit(); -#endif -#if defined(XFreeXDGA) - if (!noXFree86DGAExtension) - XFree86DGAExtensionInit(); -#endif -#ifdef DPMSExtension +#if !defined(NO_HW_ONLY_EXTS) && defined(DPMSExtension) if (!noDPMSExtension) DPMSExtensionInit(); #endif -#endif #ifdef XV if (!noXvExtension) { @@ -360,11 +340,6 @@ InitExtensions(int argc, char *argv[]) DbeExtensionInit(); #endif -#if !defined(NO_HW_ONLY_EXTS) && defined(XF86DRI) - if (!noXFree86DRIExtension) - XFree86DRIExtensionInit(); -#endif - #ifdef DMXEXT DMXExtensionInit(); /* server-specific extension, cannot be disabled */ #endif -- cgit v1.2.3