summaryrefslogtreecommitdiff
path: root/Source/WebCore/inspector/front-end/ResourcesPanel.js
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/inspector/front-end/ResourcesPanel.js')
-rw-r--r--Source/WebCore/inspector/front-end/ResourcesPanel.js13
1 files changed, 0 insertions, 13 deletions
diff --git a/Source/WebCore/inspector/front-end/ResourcesPanel.js b/Source/WebCore/inspector/front-end/ResourcesPanel.js
index ee5fc5033..7e928cf40 100644
--- a/Source/WebCore/inspector/front-end/ResourcesPanel.js
+++ b/Source/WebCore/inspector/front-end/ResourcesPanel.js
@@ -641,16 +641,6 @@ WebInspector.ResourcesPanel.prototype = {
var regex = WebInspector.SourceFrame.createSearchRegex(query);
var totalMatchesCount = 0;
- function searchInEditedResource(treeElement)
- {
- var resource = treeElement.representedObject;
- if (resource.history.length == 0)
- return;
- var matchesCount = countRegexMatches(regex, resource.content)
- treeElement.searchMatchesFound(matchesCount);
- totalMatchesCount += matchesCount;
- }
-
function callback(error, result)
{
if (!error) {
@@ -667,8 +657,6 @@ WebInspector.ResourcesPanel.prototype = {
if (!resource)
continue;
- if (resource.history.length > 0)
- continue; // Skip edited resources.
this._findTreeElementForResource(resource).searchMatchesFound(searchResult.matchesCount);
totalMatchesCount += searchResult.matchesCount;
}
@@ -681,7 +669,6 @@ WebInspector.ResourcesPanel.prototype = {
this.jumpToNextSearchResult();
}
- this._forAllResourceTreeElements(searchInEditedResource.bind(this));
PageAgent.searchInResources(regex.source, !regex.ignoreCase, true, callback.bind(this));
},