From 3cac3602f24f56413cc2ca312731675fc080b7ef Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 24 Oct 2017 15:15:27 -0400 Subject: Remove GetType from CJS_Value This CL removes the GetType method from CJS_Value and, instead, retrieves the value from the v8 object directly. Change-Id: Ia8390f3ead163c09a39cae493e75fccdd41a0961 Reviewed-on: https://pdfium-review.googlesource.com/16615 Reviewed-by: Tom Sepez Commit-Queue: dsinclair --- fpdfsdk/javascript/JS_Value.h | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'fpdfsdk/javascript/JS_Value.h') diff --git a/fpdfsdk/javascript/JS_Value.h b/fpdfsdk/javascript/JS_Value.h index 07e5986527..5e77e0beaa 100644 --- a/fpdfsdk/javascript/JS_Value.h +++ b/fpdfsdk/javascript/JS_Value.h @@ -19,19 +19,6 @@ class CJS_Runtime; class CJS_Value { public: - enum Type { - VT_unknown, - VT_string, - VT_number, - VT_boolean, - VT_date, - VT_object, - VT_null, - VT_undefined - }; - - static Type GetValueType(v8::Local value); - CJS_Value(); explicit CJS_Value(v8::Local pValue); CJS_Value(const CJS_Value& other); @@ -40,8 +27,6 @@ class CJS_Value { // These calls may re-enter JS (and hence invalidate objects). void Set(v8::Local pValue); - Type GetType() const { return GetValueType(m_pValue); } - v8::Local ToV8Value() const; // Replace the current |m_pValue| with a v8::Number if possible -- cgit v1.2.3