Remove grub_dl_unload_all. It's unnecessary and causes trouble

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-08-25 21:19:45 +02:00
parent 1e82303f1d
commit 89e07694dc
3 changed files with 0 additions and 20 deletions

View file

@ -682,20 +682,3 @@ grub_dl_unload_unneeded (void)
p = p->next;
}
}
/* Unload all modules. */
void
grub_dl_unload_all (void)
{
while (grub_dl_head)
{
grub_dl_t p;
grub_dl_unload_unneeded ();
/* Force to decrement the ref count. This will purge pre-loaded
modules and manually inserted modules. */
for (p = grub_dl_head; p; p = p->next)
p->ref_count--;
}
}