diff options
author | Darius Makovsky <traveltissues@protonmail.com> | 2019-12-05 12:24:49 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2019-12-09 08:08:31 +0000 |
commit | 8a70ab0659ea8d36172adf50b6f1cbf32ef3b73e (patch) | |
tree | 71f43f047a1f019a533a63ae1c275db380778ccb | |
parent | 2c8a2dd36dee5877c37a7cd276a44bd5cff09377 (diff) | |
download | buildstream-8a70ab0659ea8d36172adf50b6f1cbf32ef3b73e.tar.gz |
_artifactcache: remove _reachable_digests()
-rw-r--r-- | src/buildstream/_artifactcache.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/buildstream/_artifactcache.py b/src/buildstream/_artifactcache.py index e6af319cc..69a65833c 100644 --- a/src/buildstream/_artifactcache.py +++ b/src/buildstream/_artifactcache.py @@ -492,24 +492,6 @@ class ArtifactCache(BaseCache): # Local Private Methods # ################################################ - # _reachable_digests() - # - # Returns: - # (iter): Iterator over single file digests in artifacts - # - def _reachable_digests(self): - for root, _, files in os.walk(self._basedir): - for artifact_file in files: - artifact = artifact_pb2.Artifact() - with open(os.path.join(root, artifact_file), "r+b") as f: - artifact.ParseFromString(f.read()) - - if str(artifact.public_data): - yield artifact.public_data - - for log_file in artifact.logs: - yield log_file.digest - # _push_artifact_blobs() # # Push the blobs that make up an artifact to the remote server. |