Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 73b72ccfa15b7224b9cbefd9e5503330ae8307c1..60b37ec4ca44b07567e47f1067d214c9f47001be 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -1531,8 +1531,6 @@ void ObjectTemplate::SetAccessCheckCallback(AccessCheckCallback callback, |
i::Handle<i::AccessCheckInfo>::cast(struct_info); |
SET_FIELD_WRAPPED(info, set_callback, callback); |
- SET_FIELD_WRAPPED(info, set_named_callback, nullptr); |
- SET_FIELD_WRAPPED(info, set_indexed_callback, nullptr); |
if (data.IsEmpty()) { |
data = v8::Undefined(reinterpret_cast<v8::Isolate*>(isolate)); |
@@ -1543,39 +1541,6 @@ void ObjectTemplate::SetAccessCheckCallback(AccessCheckCallback callback, |
cons->set_needs_access_check(true); |
} |
-void ObjectTemplate::SetAccessCheckCallback( |
- DeprecatedAccessCheckCallback callback, Local<Value> data) { |
- SetAccessCheckCallback(reinterpret_cast<AccessCheckCallback>(callback), data); |
-} |
- |
-void ObjectTemplate::SetAccessCheckCallbacks( |
- NamedSecurityCallback named_callback, |
- IndexedSecurityCallback indexed_callback, Local<Value> data) { |
- i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |
- ENTER_V8(isolate); |
- i::HandleScope scope(isolate); |
- auto cons = EnsureConstructor(isolate, this); |
- EnsureNotInstantiated(cons, "v8::ObjectTemplate::SetAccessCheckCallbacks"); |
- |
- i::Handle<i::Struct> struct_info = |
- isolate->factory()->NewStruct(i::ACCESS_CHECK_INFO_TYPE); |
- i::Handle<i::AccessCheckInfo> info = |
- i::Handle<i::AccessCheckInfo>::cast(struct_info); |
- |
- SET_FIELD_WRAPPED(info, set_callback, nullptr); |
- SET_FIELD_WRAPPED(info, set_named_callback, named_callback); |
- SET_FIELD_WRAPPED(info, set_indexed_callback, indexed_callback); |
- |
- if (data.IsEmpty()) { |
- data = v8::Undefined(reinterpret_cast<v8::Isolate*>(isolate)); |
- } |
- info->set_data(*Utils::OpenHandle(*data)); |
- |
- cons->set_access_check_info(*info); |
- cons->set_needs_access_check(true); |
-} |
- |
- |
void ObjectTemplate::SetHandler( |
const IndexedPropertyHandlerConfiguration& config) { |
i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate(); |