summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2018-05-22 10:41:15 +0100
committerJames Ennis <james.ennis@codethink.com>2018-05-22 16:37:34 +0100
commitf6cab6410e52f6e18a9e72bc4cf16c7d9185ac2b (patch)
tree4d0a9c35be37bdc8791a9315e4ff76bc6cef3257
parent05e239572782aa9286e5c41df0adc38867849973 (diff)
downloadbuildstream-jennis/136-clean-remote-cache.tar.gz
_ostree.py: Remove unused __list_remote_refs functionjennis/136-clean-remote-cache
-rw-r--r--buildstream/_ostree.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/buildstream/_ostree.py b/buildstream/_ostree.py
index 93fad1387..72685a808 100644
--- a/buildstream/_ostree.py
+++ b/buildstream/_ostree.py
@@ -596,23 +596,3 @@ def __list_all_refs(repo):
return refs
except GLib.GError as e:
raise OSTreeError(message=e.message) from e
-
-
-# __list_remote_refs():
-#
-# Fetch list of refs from a remote.
-#
-# Args:
-# repo (OSTree.Repo): The repo
-# remote (str): An optional remote name, defaults to 'origin'
-#
-# Returns:
-# (dict): A dict of refs to checksums.
-#
-def __list_remote_refs(repo, remote="origin"):
- try:
- _, refs = repo.remote_list_refs(remote)
- return refs
- except GLib.GError as e:
- (_, remote_url) = repo.remote_get_url(remote)
- raise OSTreeError(message="{} when attempting to fetch from {}".format(e.message, remote_url)) from e