Title: [143180] trunk/Source/WebCore
- Revision
- 143180
- Author
- [email protected]
- Date
- 2013-02-18 02:29:56 -0800 (Mon, 18 Feb 2013)
Log Message
Web Inspector: Remove unused _files field in FileSystemProjectDelegate
https://bugs.webkit.org/show_bug.cgi?id=110082
Reviewed by Pavel Feldman.
* inspector/front-end/FileSystemProjectDelegate.js:
(WebInspector.FileSystemProjectDelegate):
(WebInspector.FileSystemProjectDelegate.prototype._addFile):
(WebInspector.FileSystemProjectDelegate.prototype._removeFile):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (143179 => 143180)
--- trunk/Source/WebCore/ChangeLog 2013-02-18 10:28:08 UTC (rev 143179)
+++ trunk/Source/WebCore/ChangeLog 2013-02-18 10:29:56 UTC (rev 143180)
@@ -1,3 +1,15 @@
+2013-02-18 Vsevolod Vlasov <[email protected]>
+
+ Web Inspector: Remove unused _files field in FileSystemProjectDelegate
+ https://bugs.webkit.org/show_bug.cgi?id=110082
+
+ Reviewed by Pavel Feldman.
+
+ * inspector/front-end/FileSystemProjectDelegate.js:
+ (WebInspector.FileSystemProjectDelegate):
+ (WebInspector.FileSystemProjectDelegate.prototype._addFile):
+ (WebInspector.FileSystemProjectDelegate.prototype._removeFile):
+
2013-02-18 Pavel Feldman <[email protected]>
Web Inspector: allow 0 as a formatted parameter in console message.
Modified: trunk/Source/WebCore/inspector/front-end/FileSystemProjectDelegate.js (143179 => 143180)
--- trunk/Source/WebCore/inspector/front-end/FileSystemProjectDelegate.js 2013-02-18 10:28:08 UTC (rev 143179)
+++ trunk/Source/WebCore/inspector/front-end/FileSystemProjectDelegate.js 2013-02-18 10:29:56 UTC (rev 143180)
@@ -41,7 +41,6 @@
this._isolatedFileSystemModel = isolatedFileSystemModel;
this._fileSystemId = fileSystemId;
this._fileSystemPath = fileSystemPath;
- this._files = {};
this._populate();
}
@@ -179,9 +178,6 @@
*/
_addFile: function(fileDescriptor)
{
- if (!this._files[this._fileSystemPath])
- this._files[this._fileSystemPath] = {};
- this._files[this._fileSystemPath][fileDescriptor.path] = true;
this.dispatchEventToListeners(WebInspector.ProjectDelegate.Events.FileAdded, fileDescriptor);
},
@@ -190,9 +186,6 @@
*/
_removeFile: function(uri)
{
- delete this._files[this._fileSystemPath][uri];
- if (Object.keys(this._files[this._fileSystemPath]).length === 0)
- delete this._files[this._fileSystemPath];
this.dispatchEventToListeners(WebInspector.ProjectDelegate.Events.FileRemoved, uri);
},
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes