Module: wine Branch: master Commit: 14138e6f09b166bc11a3155941da396e61b06ec3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=14138e6f09b166bc11a3155941...
Author: Jacek Caban jacek@codeweavers.com Date: Mon Jun 25 14:08:58 2012 +0200
jscript: Removed no longer needed arg_cnt and get_arg helpers.
---
dlls/jscript/dispex.c | 2 +- dlls/jscript/jscript.h | 10 ---------- 2 files changed, 1 insertions(+), 11 deletions(-)
diff --git a/dlls/jscript/dispex.c b/dlls/jscript/dispex.c index 5bec3d4..44008bd 100644 --- a/dlls/jscript/dispex.c +++ b/dlls/jscript/dispex.c @@ -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; diff --git a/dlls/jscript/jscript.h b/dlls/jscript/jscript.h index f36dcf3..4662afa 100644 --- a/dlls/jscript/jscript.h +++ b/dlls/jscript/jscript.h @@ -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;