Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2024)

Unified Diff: Source/devtools/front_end/sdk/Target.js

Issue 388303002: DevTools: Get rid of WebInspector.TargetObserver (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/profiler/ProfilesPanel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/Target.js
diff --git a/Source/devtools/front_end/sdk/Target.js b/Source/devtools/front_end/sdk/Target.js
index ccdf45d0c0f6260c2599b053b944413268068742..1f54070c8e7e2b5f545cc359a48b0108cd949a71 100644
--- a/Source/devtools/front_end/sdk/Target.js
+++ b/Source/devtools/front_end/sdk/Target.js
@@ -335,44 +335,6 @@ WebInspector.TargetManager.Observer.prototype = {
}
/**
- * @constructor
- * @implements {WebInspector.TargetManager.Observer}
- * @param {?WebInspector.Target} target
- */
-WebInspector.TargetObserver = function(target)
-{
- this._target = target;
- if (target)
- WebInspector.targetManager.observeTargets(this);
-}
-
-WebInspector.TargetObserver.prototype = {
- /**
- * @param {!WebInspector.Target} target
- */
- targetAdded: function(target) { },
-
- /**
- * @param {!WebInspector.Target} target
- */
- targetRemoved: function(target)
- {
- if (this._target === target) {
- this._target = null;
- WebInspector.targetManager.unobserveTargets(this);
- }
- },
-
- /**
- * @return {?WebInspector.Target}
- */
- target: function()
- {
- return this._target;
- }
-}
-
-/**
* @type {!WebInspector.TargetManager}
*/
WebInspector.targetManager = new WebInspector.TargetManager();
« no previous file with comments | « Source/devtools/front_end/profiler/ProfilesPanel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698