jscript: Removed no longer needed arg_cnt and get_arg helpers.

This commit is contained in:
Jacek Caban 2012-06-25 14:08:58 +02:00 committed by Alexandre Julliard
parent f8383c3417
commit 14138e6f09
2 changed files with 1 additions and 11 deletions

View File

@ -327,7 +327,7 @@ static HRESULT convert_params(const DISPPARAMS *dp, VARIANT *buf, unsigned *argc
}
for(i = 0; i < cnt; i++) {
s = get_arg(dp, i);
s = dp->rgvarg+dp->cArgs-i-1;
switch(V_VT(s)) {
case VT_I2:
V_VT(argv+i) = VT_I4;

View File

@ -377,16 +377,6 @@ HRESULT regexp_match(script_ctx_t*,jsdisp_t*,const WCHAR*,DWORD,BOOL,match_resul
HRESULT parse_regexp_flags(const WCHAR*,DWORD,DWORD*) DECLSPEC_HIDDEN;
HRESULT regexp_string_match(script_ctx_t*,jsdisp_t*,BSTR,VARIANT*,jsexcept_t*) DECLSPEC_HIDDEN;
static inline VARIANT *get_arg(const DISPPARAMS *dp, DWORD i)
{
return dp->rgvarg + dp->cArgs-i-1;
}
static inline DWORD arg_cnt(const DISPPARAMS *dp)
{
return dp->cArgs - dp->cNamedArgs;
}
static inline BOOL is_class(jsdisp_t *jsdisp, jsclass_t class)
{
return jsdisp->builtin_info->class == class;