From cbaca6ec666d7349c4680b8affc13b5c9cae1fa5 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Tue, 25 Nov 2008 00:14:24 -0500 Subject: [PATCH] Remove dead FreeModuleDesc. --- hw/xfree86/loader/loadmod.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/hw/xfree86/loader/loadmod.c b/hw/xfree86/loader/loadmod.c index 70c54a76a..e98f013c4 100644 --- a/hw/xfree86/loader/loadmod.c +++ b/hw/xfree86/loader/loadmod.c @@ -1133,24 +1133,6 @@ UnloadSubModule(ModuleDescPtr mod) xfree(mod); } -static void -FreeModuleDesc(ModuleDescPtr head) -{ - ModuleDescPtr sibs, prev; - - if (head == (ModuleDescPtr) 1) - return; - if (head->child) - FreeModuleDesc(head->child); - sibs = head; - while (sibs) { - prev = sibs; - sibs = sibs->sib; - TestFree(prev->name); - xfree(prev); - } -} - static void RemoveChild(ModuleDescPtr child) {