diff options
Diffstat (limited to 'extensions/renderer/v8_helpers.h')
-rw-r--r-- | extensions/renderer/v8_helpers.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/extensions/renderer/v8_helpers.h b/extensions/renderer/v8_helpers.h index 560beee..b0dd17a 100644 --- a/extensions/renderer/v8_helpers.h +++ b/extensions/renderer/v8_helpers.h @@ -71,23 +71,6 @@ inline bool SetProperty(v8::Local<v8::Context> context, return IsTrue(object->DefineOwnProperty(context, key, value)); } -inline bool SetProperty(v8::Local<v8::Context> context, - v8::Local<v8::Object> object, - const char* key, - v8::Local<v8::Value> value) { - v8::Local<v8::String> v8_key; - if (!ToV8String(context->GetIsolate(), key, &v8_key)) - return false; - return SetProperty(context, object, v8_key, value); -} - -inline bool SetProperty(v8::Local<v8::Context> context, - v8::Local<v8::Object> object, - uint32_t index, - v8::Local<v8::Value> value) { - return SetProperty(context, object, base::UintToString(index).c_str(), value); -} - // Wraps v8::Object::SetPrivate(). When possible, prefer this to SetProperty(). inline bool SetPrivateProperty(v8::Local<v8::Context> context, v8::Local<v8::Object> object, |