summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Pollard <tom.pollard@codethink.co.uk>2019-04-25 11:01:06 +0100
committerTom Pollard <tom.pollard@codethink.co.uk>2019-04-26 14:08:11 +0100
commit6e8c9bcfe2b0afae97264358908852886fc27140 (patch)
treea29551e49f3cd4aa8c75ea97d6fb2996d624f214
parent8f8e8b8f208c3afa5d6b2654fdb265a23b39a698 (diff)
downloadbuildstream-6e8c9bcfe2b0afae97264358908852886fc27140.tar.gz
_cas/cascache.py: Remove unused list_refs() method
-rw-r--r--buildstream/_cas/cascache.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/buildstream/_cas/cascache.py b/buildstream/_cas/cascache.py
index 85f4c7e1a..e15da1a4e 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.