Web Inspector: remove unused Object.deprecatedAddConstructorFunctions
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Aug 2015 21:17:37 +0000 (21:17 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Aug 2015 21:17:37 +0000 (21:17 +0000)
https://bugs.webkit.org/show_bug.cgi?id=147690

Patch by Brian Burg <bburg@apple.com> on 2015-08-05
Reviewed by Timothy Hatcher.

This is no longer used following the conversion to ES6 classes.

* UserInterface/Base/Object.js:
(WebInspector.Object.deprecatedAddConstructorFunctions): Deleted.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@187986 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebInspectorUI/ChangeLog
Source/WebInspectorUI/UserInterface/Base/Object.js

index aa71020..d848970 100644 (file)
@@ -1,5 +1,17 @@
 2015-08-05  Brian Burg  <bburg@apple.com>
 
+        Web Inspector: remove unused Object.deprecatedAddConstructorFunctions
+        https://bugs.webkit.org/show_bug.cgi?id=147690
+
+        Reviewed by Timothy Hatcher.
+
+        This is no longer used following the conversion to ES6 classes.
+
+        * UserInterface/Base/Object.js:
+        (WebInspector.Object.deprecatedAddConstructorFunctions): Deleted.
+
+2015-08-05  Brian Burg  <bburg@apple.com>
+
         Web Inspector: Convert miscellaneous view widgets to use ES6 classes
         https://bugs.webkit.org/show_bug.cgi?id=147658
 
index 2528daf..9ede0ad 100644 (file)
@@ -148,21 +148,6 @@ WebInspector.Object = class Object
     }
 };
 
-// FIXME: Uses arguments.callee, so it cannot be in the class.
-WebInspector.Object.deprecatedAddConstructorFunctions = function(subclassConstructor)
-{
-    // Copies the relevant functions to the subclass constructor.
-    var list = ["addEventListener", "removeEventListener", "removeAllListeners", "hasEventListeners"];
-    for (var property of list) {
-        var value = WebInspector.Object[property];
-        if (typeof value !== "function")
-            continue;
-        if (value === arguments.callee)
-            continue;
-        subclassConstructor[property] = value;
-    }
-};
-
 WebInspector.Event = class Event
 {
     constructor(target, type, data)