Commit e7495555 authored by Dan Hipschman's avatar Dan Hipschman Committed by Alexandre Julliard

widl: Remove redundant get_var_vt function.

parent 933ca7b1
......@@ -212,20 +212,6 @@ unsigned short get_type_vt(type_t *t)
return 0;
}
unsigned short get_var_vt(var_t *v)
{
unsigned short vt;
const char *tname = v->type->name;
chat("get_var_vt: var %p type->name %s\n", v, tname ? tname : "NULL");
if (tname) {
vt = builtin_vt(tname);
if (vt) return vt;
}
return get_type_vt(v->type);
}
void start_typelib(char *name, attr_list_t *attrs)
{
in_typelib++;
......
......@@ -82,7 +82,6 @@ enum VARENUM {
VT_TYPEMASK = 0xfff
};
extern unsigned short get_type_vt(type_t *t);
extern unsigned short get_var_vt(var_t *v);
extern int create_msft_typelib(typelib_t *typelib);
#endif
......@@ -1155,7 +1155,7 @@ static int encode_var(
}
dump_type(var->type);
vt = get_var_vt(var);
vt = get_type_vt(var->type);
type = var->type;
while(!vt) {
if(type->ref == NULL) {
......@@ -1445,7 +1445,7 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, const func_t *func, int
if (arg->type->type == RPC_FC_ENUM16)
vt = VT_INT;
else
vt = get_var_vt(arg);
vt = get_type_vt(arg->type);
paramflags |= 0x30; /* PARAMFLAG_FHASDEFAULT | PARAMFLAG_FOPT */
chat("default value %ld\n", expr->cval);
write_value(typeinfo->typelib, defaultdata, vt, &expr->cval);
......@@ -1458,7 +1458,7 @@ static HRESULT add_func_desc(msft_typeinfo_t* typeinfo, const func_t *func, int
if (arg->type->type == RPC_FC_ENUM16)
vt = VT_INT;
else
vt = get_var_vt(arg);
vt = get_type_vt(arg->type);
paramflags |= 0x30; /* PARAMFLAG_FHASDEFAULT | PARAMFLAG_FOPT */
chat("default value '%s'\n", s);
write_value(typeinfo->typelib, defaultdata, vt, s);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment