Web Inspector: cleanup unused variable introduced at r102803
authorloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Dec 2011 06:25:05 +0000 (06:25 +0000)
committerloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Dec 2011 06:25:05 +0000 (06:25 +0000)
* inspector/front-end/NetworkManager.js:
(WebInspector.NetworkManager.prototype.enableResourceTracking):
(WebInspector.NetworkManager.prototype.disableResourceTracking):

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

Source/WebCore/ChangeLog
Source/WebCore/inspector/front-end/NetworkManager.js

index 42c8a83e1c177a504b7eefbc71b0682dac32dd45..26703e346f180dd4560aca6048abdfbaa14a0c5a 100755 (executable)
@@ -1,3 +1,11 @@
+2011-12-14  Ilya Tikhonovsky  <loislo@chromium.org>
+
+        Web Inspector: cleanup unused variable introduced at r102803
+
+        * inspector/front-end/NetworkManager.js:
+        (WebInspector.NetworkManager.prototype.enableResourceTracking):
+        (WebInspector.NetworkManager.prototype.disableResourceTracking):
+
 2011-12-14  Wei James  <james.wei@intel.com>
 
         fast path to accelerate processing in AudioBus::processWithGainFromMonoStereo
index 681d56888672bb4dc25ca7934a92ec281b44d2af..d32149a09491322dfd868df1b6150e810fbb7e7e 100644 (file)
@@ -40,7 +40,6 @@ WebInspector.NetworkManager = function()
         NetworkAgent.setCacheDisabled(true);
 
     NetworkAgent.enable();
-    this._resourceTracking = true;
 
     WebInspector.settings.cacheDisabled.addChangeListener(this._cacheDisabledSettingChanged, this);
 
@@ -78,24 +77,14 @@ WebInspector.NetworkManager.prototype = {
 
     enableResourceTracking: function()
     {
-        function networkAgentEnabled()
-        {
-            this._resourceTracking = true;
-            this.dispatchEventToListeners(WebInspector.NetworkManager.EventTypes.ResourceTrackingEnabled);
-        }
-
-        NetworkAgent.enable(networkAgentEnabled.bind(this));
+        var networkAgentEnabled = this.dispatchEventToListeners.bind(this, WebInspector.NetworkManager.EventTypes.ResourceTrackingEnabled);
+        NetworkAgent.enable(networkAgentEnabled);
     },
 
     disableResourceTracking: function()
     {
-        function networkAgentDisabled()
-        {
-            this._resourceTracking = false;
-            this.dispatchEventToListeners(WebInspector.NetworkManager.EventTypes.ResourceTrackingDisabled);
-        }
-
-        NetworkAgent.disable(networkAgentDisabled.bind(this));
+        var networkAgentDisabled = this.dispatchEventToListeners.bind(this, WebInspector.NetworkManager.EventTypes.ResourceTrackingDisabled);
+        NetworkAgent.disable(networkAgentDisabled);
     },
 
     inflightResourceForURL: function(url)