Francois Gouget : winapi: Remove some dead code.

Alexandre Julliard julliard at winehq.org
Mon Apr 20 11:33:09 CDT 2009


Module: wine
Branch: master
Commit: 9bdde98ab6d43b356586dafb446e36651ff4f939
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9bdde98ab6d43b356586dafb446e36651ff4f939

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Apr 20 15:08:33 2009 +0200

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 f549fc1..b93e461 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 f5279e1..491063e 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 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;




More information about the wine-cvs mailing list