Commit 4b73b02b authored by Paweł Hajdan, Jr's avatar Paweł Hajdan, Jr Committed by Commit Bot

gclient: remove unused depth_first_tree

Bug: none
Change-Id: I85724e97c923b4e1651ebf435692018b4629f312
Reviewed-on: https://chromium-review.googlesource.com/541376Reviewed-by: 's avatarSergiy Byelozyorov <sergiyb@chromium.org>
Commit-Queue: Paweł Hajdan Jr. <phajdan.jr@chromium.org>
parent 66945379
...@@ -1017,14 +1017,6 @@ class Dependency(gclient_utils.WorkItem, DependencySettings): ...@@ -1017,14 +1017,6 @@ class Dependency(gclient_utils.WorkItem, DependencySettings):
for i in d.subtree(include_all): for i in d.subtree(include_all):
yield i yield i
def depth_first_tree(self):
"""Depth-first recursion including the root node."""
yield self
for i in self.dependencies:
for j in i.depth_first_tree():
if j.should_process:
yield j
@gclient_utils.lockedmethod @gclient_utils.lockedmethod
def add_dependency(self, new_dep): def add_dependency(self, new_dep):
self._dependencies.append(new_dep) self._dependencies.append(new_dep)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment