Removed a halloc_register_function_void

This commit is contained in:
ridiculousfish
2012-02-09 19:00:05 -08:00
parent 80e8f6a0d1
commit a38490429b

View File

@@ -278,24 +278,6 @@ wcstring wbasename( const wcstring &path )
return result;
}
/**
For wgettext: Internal shutdown function. Automatically called on shutdown if the library has been initialized.
*/
static void wgettext_destroy()
{
int i;
if( !wgettext_is_init )
return;
wgettext_is_init = 0;
for(i=0; i<BUFF_COUNT; i++ )
sb_destroy( &buff[i] );
free( wcs2str_buff );
}
/**
For wgettext: Internal init function. Automatically called when a translation is first requested.
*/
@@ -310,8 +292,6 @@ static void wgettext_init()
sb_init( &buff[i] );
}
halloc_register_function_void( global_context, &wgettext_destroy );
bindtextdomain( PACKAGE_NAME, LOCALEDIR );
textdomain( PACKAGE_NAME );
}