From 7111121ef0321ecc185eb0af571394e9ccdd8d38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Thu, 31 Aug 2006 13:56:43 +0000 Subject: remove dead code --- int10/i10_vbios.c | 10 +--------- int10/vbios.h | 2 +- vbe.c | 3 +-- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/int10/i10_vbios.c b/int10/i10_vbios.c index 328ad84..5d12741 100644 --- a/int10/i10_vbios.c +++ b/int10/i10_vbios.c @@ -79,7 +79,7 @@ static sigjmp_buf longjmp_buf; static void sigsegv_handler(int); -int InitInt10(hd_data_t *hd_data, int pci_cfg_method) +int InitInt10(hd_data_t *hd_data) { if(geteuid()) return -1; @@ -97,14 +97,6 @@ int InitInt10(hd_data_t *hd_data, int pci_cfg_method) return -1; } -#if 0 - scan_pci(pci_cfg_method); - - for(; CurrentPci; CurrentPci = CurrentPci->next) { - if(CurrentPci->active) break; - } -#endif - iopl(0); setup_int_vect(); diff --git a/int10/vbios.h b/int10/vbios.h index edcb715..1777e01 100644 --- a/int10/vbios.h +++ b/int10/vbios.h @@ -1,6 +1,6 @@ #include "hd.h" -int InitInt10(hd_data_t *, int); +int InitInt10(hd_data_t *); int CallInt10(int *ax, int *bx, int *cx, unsigned char *buf, int len, int cpuemu); int CallInt13(int *ax, int *bx, int *cx, int *dx, unsigned char *buf, int len, int cpuemu); void FreeInt10(void); diff --git a/vbe.c b/vbe.c index 5b3f87e..413ae2a 100644 --- a/vbe.c +++ b/vbe.c @@ -276,7 +276,6 @@ int get_edid__old(char *edid) int get_edid(hd_data_t *hd_data, char *edid) { - int pci_config_type = 1; /* Determine PCI configuration type */ int ok = 0; if (getuid() != 0) { @@ -285,7 +284,7 @@ int get_edid(hd_data_t *hd_data, char *edid) } if (!box_is_xbox()) { - if (InitInt10(hd_data, pci_config_type) == 0) { + if (InitInt10(hd_data) == 0) { ok = vbe_check_vbe_info(hd_data) && vbe_get_edid_info(hd_data, edid); FreeInt10(); -- cgit v1.2.1