winapi: Remove some dead code.

Francois Gouget fgouget at free.fr
Mon Apr 20 08:08:33 CDT 2009


---
 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 cc6b213..8ee9b00 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 96e8641..4e64d2c 100644
--- a/tools/winapi/winapi.pm
+++ b/tools/winapi/winapi.pm
@@ -323,13 +323,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 58333dc..7288a2e 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;
-- 
1.6.2.1




More information about the wine-patches mailing list