# HG changeset patch # User Mads Kiilerich # Date 2019-12-27 01:51:14 # Node ID 7e22c4b909b2477268243d2281845cb38780cac9 # Parent 5c4074db01d36f038d0c89d66456f0c4bb5b37db vcs: drop unused NodeGeneratorBase()() Creating a whole list seems inefficient ... but it is fortunately not used. diff --git a/kallithea/lib/vcs/nodes.py b/kallithea/lib/vcs/nodes.py --- a/kallithea/lib/vcs/nodes.py +++ b/kallithea/lib/vcs/nodes.py @@ -45,9 +45,6 @@ class NodeGeneratorBase(object): self.cs = cs self.current_paths = current_paths - def __call__(self): - return [n for n in self] - def __getitem__(self, key): assert isinstance(key, slice), key for p in self.current_paths[key]: