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

Unified Diff: Source/devtools/front_end/resources/ResourcesPanel.js

Issue 339853003: DevTools: Remove unused isAncestor parameter from findTreeElement in TreeOutline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
Index: Source/devtools/front_end/resources/ResourcesPanel.js
diff --git a/Source/devtools/front_end/resources/ResourcesPanel.js b/Source/devtools/front_end/resources/ResourcesPanel.js
index 15315d4ffb77ae5e29d53d0be36634e5eaca7295..760440a94d7c6da37ebbb820434d9ba6d0bf42a8 100644
--- a/Source/devtools/front_end/resources/ResourcesPanel.js
+++ b/Source/devtools/front_end/resources/ResourcesPanel.js
@@ -724,19 +724,13 @@ WebInspector.ResourcesPanel.prototype = {
_findTreeElementForResource: function(resource)
{
- function isAncestor(ancestor, object)
- {
- // Redirects, XHRs do not belong to the tree, it is fine to silently return false here.
- return false;
- }
-
function getParent(object)
{
// Redirects, XHRs do not belong to the tree, it is fine to silently return false here.
return null;
}
- return this.sidebarTree.findTreeElement(resource, isAncestor, getParent);
+ return this.sidebarTree.findTreeElement(resource, getParent);
},
showView: function(view)
« no previous file with comments | « Source/devtools/front_end/elements/ElementsTreeOutline.js ('k') | Source/devtools/front_end/ui/treeoutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698