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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js

Issue 2349343002: DevTools: introduce persistence/ module (Closed)
Patch Set: simplify test Created 4 years, 3 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 | « third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js b/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
index 8fb9412415e3dcf4108d583e553bff66c6462211..df73870cea992a7a7f66f862754f12cc9d7752dd 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
@@ -366,28 +366,6 @@ WebInspector.Workspace.Events = {
WebInspector.Workspace.prototype = {
/**
- * @return {!Array.<!WebInspector.UISourceCode>}
- */
- unsavedSourceCodes: function()
- {
- /**
- * @param {!WebInspector.UISourceCode} sourceCode
- * @return {boolean}
- */
- function filterUnsaved(sourceCode)
- {
- return sourceCode.isDirty();
- }
-
- var unsavedSourceCodes = [];
- var projects = this.projectsForType(WebInspector.projectTypes.FileSystem);
- for (var i = 0; i < projects.length; ++i)
- unsavedSourceCodes = unsavedSourceCodes.concat(projects[i].uiSourceCodes().filter(filterUnsaved));
-
- return unsavedSourceCodes;
- },
-
- /**
* @param {string} projectId
* @param {string} url
* @return {?WebInspector.UISourceCode}
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/workspace/UISourceCode.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698