Remove unused debug_comment_exit

This commit is contained in:
Aaron Giles 2010-09-04 20:44:53 +00:00
parent b954eccd7e
commit 15ec9dd390
2 changed files with 3 additions and 10 deletions

View File

@ -506,13 +506,3 @@ error:
xml_file_free(root); xml_file_free(root);
return 0; return 0;
} }
/*-------------------------------------------------------------------------
debug_comment_exit - saves the comments and frees memory
-------------------------------------------------------------------------*/
static void debug_comment_exit(running_machine &machine)
{
debug_comment_save(&machine);
}

View File

@ -114,6 +114,9 @@ static void debugger_exit(running_machine &machine)
{ {
machine_entry **entryptr; machine_entry **entryptr;
// save any comments
debug_comment_save(&machine);
/* remove this machine from the list; it came down cleanly */ /* remove this machine from the list; it came down cleanly */
for (entryptr = &machine_list; *entryptr != NULL; entryptr = &(*entryptr)->next) for (entryptr = &machine_list; *entryptr != NULL; entryptr = &(*entryptr)->next)
if ((*entryptr)->machine == &machine) if ((*entryptr)->machine == &machine)