From 8eca37cb8934e79f02291460eb7b49a5d528f391 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Wed, 4 Feb 2009 22:48:52 -0500 Subject: [PATCH] Bus: Remove unused xf86ExtractTypeFromList --- hw/xfree86/common/xf86Bus.c | 13 ------------- hw/xfree86/common/xf86Bus.h | 2 -- 2 files changed, 15 deletions(-) diff --git a/hw/xfree86/common/xf86Bus.c b/hw/xfree86/common/xf86Bus.c index ece87528c..d320078a8 100644 --- a/hw/xfree86/common/xf86Bus.c +++ b/hw/xfree86/common/xf86Bus.c @@ -2351,19 +2351,6 @@ xf86FindComplement(resRange Range) } #endif -resPtr -xf86ExtractTypeFromList(resPtr list, unsigned long type) -{ - resPtr ret = NULL; - - while (list) { - if ((list->res_type & ResTypeMask) == type) - ret = xf86AddResToList(ret,&(list->val),list->entityIndex); - list = list->next; - } - return ret; -} - /* * xf86FindPrimaryDevice() - Find the display device which * was active when the server was started. diff --git a/hw/xfree86/common/xf86Bus.h b/hw/xfree86/common/xf86Bus.h index be19e1984..518294cf7 100644 --- a/hw/xfree86/common/xf86Bus.h +++ b/hw/xfree86/common/xf86Bus.h @@ -135,7 +135,5 @@ extern BusAccPtr xf86BusAccInfo; int xf86AllocateEntity(void); BusType StringToBusType(const char* busID, const char **retID); Bool xf86IsSubsetOf(resRange range, resPtr list); -resPtr xf86ExtractTypeFromList(resPtr list, unsigned long type); -resPtr xf86FindIntersect(resRange Range, resPtr list); #endif /* _XF86_BUS_H */