summaryrefslogtreecommitdiff
path: root/xfa/fxjse/util_inline.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-05-25 19:36:59 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-25 19:36:59 -0700
commit818e1900a3811e1bde1e594e4966db612f845966 (patch)
tree0c5f468fa2764d59bd81300c48bf5a0562ef70d5 /xfa/fxjse/util_inline.h
parent008ec70b47db2318a98e8474b7bfac6e10b2bc6c (diff)
downloadpdfium-818e1900a3811e1bde1e594e4966db612f845966.tar.xz
Remove parameters which are always null
These parameters are never set, remove them and their supporting code. Review-Url: https://codereview.chromium.org/2009413002
Diffstat (limited to 'xfa/fxjse/util_inline.h')
-rw-r--r--xfa/fxjse/util_inline.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/xfa/fxjse/util_inline.h b/xfa/fxjse/util_inline.h
index e61dc6aa80..336886b666 100644
--- a/xfa/fxjse/util_inline.h
+++ b/xfa/fxjse/util_inline.h
@@ -20,8 +20,7 @@ static V8_INLINE void FXJSE_UpdateObjectBinding(v8::Local<v8::Object>& hObject,
hObject->SetAlignedPointerInInternalField(0, lpNewBinding);
}
static V8_INLINE void* FXJSE_RetrieveObjectBinding(
- const v8::Local<v8::Object>& hJSObject,
- CFXJSE_Class* lpClass = NULL) {
+ const v8::Local<v8::Object>& hJSObject) {
ASSERT(!hJSObject.IsEmpty());
if (!hJSObject->IsObject()) {
return NULL;
@@ -37,14 +36,6 @@ static V8_INLINE void* FXJSE_RetrieveObjectBinding(
return NULL;
}
}
- if (lpClass) {
- v8::Local<v8::FunctionTemplate> hClass =
- v8::Local<v8::FunctionTemplate>::New(
- lpClass->GetContext()->GetRuntime(), lpClass->GetTemplate());
- if (!hClass->HasInstance(hObject)) {
- return NULL;
- }
- }
return hObject->GetAlignedPointerFromInternalField(0);
}