From 9bdde98ab6d43b356586dafb446e36651ff4f939 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Mon, 20 Apr 2009 15:08:33 +0200 Subject: [PATCH] winapi: Remove some dead code. --- tools/winapi/c_parser.pm | 4 ---- tools/winapi/winapi.pm | 8 +------- tools/winapi/winapi_test | 4 +--- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/tools/winapi/c_parser.pm b/tools/winapi/c_parser.pm index f549fc181e7..b93e4612502 100644 --- a/tools/winapi/c_parser.pm +++ b/tools/winapi/c_parser.pm @@ -1873,10 +1873,6 @@ sub parse_c_typedef($$$$) { &$$found_type($type); } - - if (0 && $_ && !/^,/) { - $self->_parse_c_error($_, $line, $column, "typedef"); - } } else { $self->_parse_c_error($_, $line, $column, "typedef"); } diff --git a/tools/winapi/winapi.pm b/tools/winapi/winapi.pm index f5279e15827..491063e17cf 100644 --- a/tools/winapi/winapi.pm +++ b/tools/winapi/winapi.pm @@ -315,13 +315,7 @@ sub parse_spec_file($$) { if ($internal_name =~ /^(.*?)\.(.*?)$/) { my $forward_module = lc($1); my $forward_name = $2; - - if (0) { - $calling_convention .= " -forward"; - } else { - $calling_convention = "forward"; - } - + $calling_convention = "forward"; $$function_forward{$module}{$external_name} = [$forward_module, $forward_name]; } diff --git a/tools/winapi/winapi_test b/tools/winapi/winapi_test index 58333dc5451..7288a2ecdc1 100755 --- a/tools/winapi/winapi_test +++ b/tools/winapi/winapi_test @@ -180,9 +180,7 @@ sub _find_align_kind_size($) { my $align; my $kind; my $size; - if (0) { - # Nothing - } elsif (/\*+$/) { + if (/\*+$/) { $align = 4; $kind = "pointer"; $size = 4;