From c38c9b0fd650fd46ae5b09cc3f069ba0ab2a92fa Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 7 May 2011 23:26:55 +0000 Subject: [PATCH] Code cleanup --- src/format/pe.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/format/pe.c b/src/format/pe.c index 5e2c01a..67be4ff 100644 --- a/src/format/pe.c +++ b/src/format/pe.c @@ -145,8 +145,6 @@ static int _pe_init(FormatPlugin * format, char const * arch) /* pe_detect */ -static char const * _detect_error(FormatPlugin * format); - static char const * _pe_detect(FormatPlugin * format) { FormatPluginHelper * helper = format->helper; @@ -166,13 +164,6 @@ static char const * _pe_detect(FormatPlugin * format) 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 */ static int _decode_error(FormatPlugin * format);