Code cleanup

This commit is contained in:
Pierre Pronchery 2011-05-07 23:26:55 +00:00
parent 4cda60c32c
commit c38c9b0fd6

View File

@ -145,8 +145,6 @@ static int _pe_init(FormatPlugin * format, char const * arch)
/* pe_detect */ /* pe_detect */
static char const * _detect_error(FormatPlugin * format);
static char const * _pe_detect(FormatPlugin * format) static char const * _pe_detect(FormatPlugin * format)
{ {
FormatPluginHelper * helper = format->helper; FormatPluginHelper * helper = format->helper;
@ -166,13 +164,6 @@ static char const * _pe_detect(FormatPlugin * format)
return _pe_get_arch(ph.machine); return _pe_get_arch(ph.machine);
} }
static char const * _detect_error(FormatPlugin * format)
{
error_set_code(1, "%s: %s", format->helper->get_filename(
format->helper->format), strerror(errno));
return NULL;
}
/* pe_decode */ /* pe_decode */
static int _decode_error(FormatPlugin * format); static int _decode_error(FormatPlugin * format);