Rob Shearman : widl: Remove redundant code.
Alexandre Julliard
julliard at winehq.org
Thu Sep 11 08:00:19 CDT 2008
Module: wine
Branch: master
Commit: e0dd72162ac1c7ba0eb8856e1c8fd5ce2a1410be
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e0dd72162ac1c7ba0eb8856e1c8fd5ce2a1410be
Author: Rob Shearman <robertshearman at gmail.com>
Date: Wed Sep 10 22:31:39 2008 +0100
widl: Remove redundant code.
dispinterfaces now have a type of RPC_FC_IP instead of 0, so this code
will never be reached.
---
tools/widl/write_msft.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/tools/widl/write_msft.c b/tools/widl/write_msft.c
index 28a74f2..30ed251 100644
--- a/tools/widl/write_msft.c
+++ b/tools/widl/write_msft.c
@@ -1005,10 +1005,7 @@ static int encode_type(
add_coclass_typeinfo(typelib, type);
break;
case 0:
- if (type->kind == TKIND_DISPATCH)
- add_dispinterface_typeinfo(typelib, type);
- else
- error("encode_type: VT_USERDEFINED - can't yet add typedef's on the fly\n");
+ error("encode_type: VT_USERDEFINED - can't yet add typedef's on the fly\n");
break;
default:
error("encode_type: VT_USERDEFINED - unhandled type %d\n", type->type);
More information about the wine-cvs
mailing list