diff options
author | Jürg Billeter <j@bitron.ch> | 2019-03-13 16:35:10 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-03-27 16:24:32 +0000 |
commit | e16416f69ca066393aaf42bb8c8bcf166b77dac8 (patch) | |
tree | 7d5018ac9f77c011bf7f35bcb58af7af2895cfca | |
parent | c0315a4a9a96a735aec991d931e745499c1109e5 (diff) | |
download | buildstream-e16416f69ca066393aaf42bb8c8bcf166b77dac8.tar.gz |
_artifactcache.py: Remove unused method push_directory()
-rw-r--r-- | buildstream/_artifactcache.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/buildstream/_artifactcache.py b/buildstream/_artifactcache.py index 2e544d223..5fd646137 100644 --- a/buildstream/_artifactcache.py +++ b/buildstream/_artifactcache.py @@ -359,30 +359,6 @@ class ArtifactCache(BaseCache): return None - # push_directory(): - # - # Push the given virtual directory to all remotes. - # - # Args: - # project (Project): The current project - # directory (Directory): A virtual directory object to push. - # - # Raises: - # (ArtifactError): if there was an error - # - def push_directory(self, project, directory): - if self._has_push_remotes: - push_remotes = [r for r in self._remotes[project] if r.spec.push] - else: - push_remotes = [] - - if not push_remotes: - raise ArtifactError("push_directory was called, but no remote artifact " + - "servers are configured as push remotes.") - - for remote in push_remotes: - self.cas.push_directory(remote, directory) - # push_message(): # # Push the given protobuf message to all remotes. |