You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by no...@apache.org on 2020/12/29 12:25:22 UTC

[buildstream] 12/13: _cas/cascache.py: Remove unused list_refs() method

This is an automated email from the ASF dual-hosted git repository.

not-in-ldap pushed a commit to branch tpollard/prototemp
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 6e8c9bcfe2b0afae97264358908852886fc27140
Author: Tom Pollard <to...@codethink.co.uk>
AuthorDate: Thu Apr 25 11:01:06 2019 +0100

    _cas/cascache.py: Remove unused list_refs() method
---
 buildstream/_cas/cascache.py | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/buildstream/_cas/cascache.py b/buildstream/_cas/cascache.py
index 85f4c7e..e15da1a 100644
--- a/buildstream/_cas/cascache.py
+++ b/buildstream/_cas/cascache.py
@@ -496,21 +496,6 @@ class CASCache():
         except FileNotFoundError as e:
             raise CASCacheError("Attempt to access unavailable ref: {}".format(e)) from e
 
-    # list_refs():
-    #
-    # List refs in Least Recently Modified (LRM) order.
-    #
-    # Args:
-    #     glob (str) - An optional glob expression to be used to list refs satisfying the glob
-    #
-    # Returns:
-    #     (list) - A list of refs in LRM order
-    #
-    def list_refs(self, *, glob=None):
-        # string of: /path/to/repo/refs/heads
-        return [ref for _, ref in sorted(list(utils._list_directory(
-            os.path.join(self.casdir, 'refs', 'heads'), glob_expr=glob)))]
-
     # list_objects():
     #
     # List cached objects in Least Recently Modified (LRM) order.