summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuediger Oertel <ro@suse.de>2010-03-29 00:23:40 +0200
committerKeith Packard <keithp@keithp.com>2010-03-29 12:01:46 -0700
commit67b814d9b2baea6beccfb1625a1e3f0b2ba7218b (patch)
tree982715b60d44f8433872ea2c784397032296be7b
parent1dd5fbc5a4d860af1c102b33e04dedd8c72617a1 (diff)
Remove now obsolete function chooseVideoDriver
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--hw/xfree86/common/xf86AutoConfig.c25
1 files changed, 0 insertions, 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