Commit e878ea9d authored by adamk's avatar adamk Committed by Commit bot

[cleanup] Remove unused JS helper utils.InstallGetterSetter

R=gsathya@chromium.org

Review-Url: https://codereview.chromium.org/2615733002
Cr-Commit-Position: refs/heads/master@{#42074}
parent a18de9cf
...@@ -112,20 +112,6 @@ function InstallGetter(object, name, getter, attributes, prefix) { ...@@ -112,20 +112,6 @@ function InstallGetter(object, name, getter, attributes, prefix) {
} }
// Helper function to install a getter/setter accessor property.
function InstallGetterSetter(object, name, getter, setter, attributes) {
%CheckIsBootstrapping();
if (IS_UNDEFINED(attributes)) attributes = DONT_ENUM;
SetFunctionName(getter, name, "get");
SetFunctionName(setter, name, "set");
%FunctionRemovePrototype(getter);
%FunctionRemovePrototype(setter);
%DefineAccessorPropertyUnchecked(object, name, getter, setter, attributes);
%SetNativeFlag(getter);
%SetNativeFlag(setter);
}
function OverrideFunction(object, name, f, afterInitialBootstrap) { function OverrideFunction(object, name, f, afterInitialBootstrap) {
%CheckIsBootstrapping(); %CheckIsBootstrapping();
%object_define_property(object, name, { value: f, %object_define_property(object, name, { value: f,
...@@ -270,7 +256,6 @@ utils.SetFunctionName = SetFunctionName; ...@@ -270,7 +256,6 @@ utils.SetFunctionName = SetFunctionName;
utils.InstallConstants = InstallConstants; utils.InstallConstants = InstallConstants;
utils.InstallFunctions = InstallFunctions; utils.InstallFunctions = InstallFunctions;
utils.InstallGetter = InstallGetter; utils.InstallGetter = InstallGetter;
utils.InstallGetterSetter = InstallGetterSetter;
utils.OverrideFunction = OverrideFunction; utils.OverrideFunction = OverrideFunction;
utils.SetUpLockedPrototype = SetUpLockedPrototype; utils.SetUpLockedPrototype = SetUpLockedPrototype;
utils.PostNatives = PostNatives; utils.PostNatives = PostNatives;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment