[4/5] widl: Remove dead code in write_msft.c

Dan Hipschman dsh at linux.ucla.edu
Wed May 9 22:49:06 CDT 2007


I noticed that the get_type_vt function never returns 0 except on an error
(in which case widl exits anyway), so this is just dead code.

---
 tools/widl/write_msft.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c
index 54affd9..439d7be 100644
--- a/tools/widl/write_msft.c
+++ b/tools/widl/write_msft.c
@@ -1157,14 +1157,6 @@ static int encode_var(
 
     vt = get_type_vt(var->type);
     type = var->type;
-    while(!vt) {
-        if(type->ref == NULL) {
-            vt = VT_VOID;
-            break;
-        }
-        type = type->ref;
-        vt = get_type_vt(type);
-    }
     encode_type(typelib, vt, type, encoded_type, width, alignment, decoded_size);
     if(type->type == RPC_FC_IP) return 2;
     return 0;



More information about the wine-patches mailing list