From 67b814d9b2baea6beccfb1625a1e3f0b2ba7218b Mon Sep 17 00:00:00 2001 From: Ruediger Oertel Date: Mon, 29 Mar 2010 00:23:40 +0200 Subject: Remove now obsolete function chooseVideoDriver Signed-off-by: Keith Packard --- hw/xfree86/common/xf86AutoConfig.c | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/hw/xfree86/common/xf86AutoConfig.c b/hw/xfree86/common/xf86AutoConfig.c index 56f7debfb..7b836b00d 100644 --- a/hw/xfree86/common/xf86AutoConfig.c +++ b/hw/xfree86/common/xf86AutoConfig.c @@ -522,31 +522,6 @@ listPossibleVideoDrivers(char *matches[], int nmatches) } } -static char* -chooseVideoDriver(void) -{ - char *chosen_driver = NULL; - int i; - char *matches[20]; /* If we have more than 20 drivers we're in trouble */ - - listPossibleVideoDrivers(matches, 20); - - /* TODO Handle multiple drivers claiming to support the same PCI ID */ - chosen_driver = matches[0]; - - xf86Msg(X_DEFAULT, "Matched %s for the autoconfigured driver\n", - chosen_driver); - - for (i = 0; matches[i] ; i++) { - if (matches[i] != chosen_driver) { - xfree(matches[i]); - } - } - - return chosen_driver; -} - - /* copy a screen section and enter the desired driver * and insert it at i in the list of screens */ static Bool -- cgit v1.2.3