diff options
author | Jürg Billeter <j@bitron.ch> | 2018-07-11 13:44:50 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-07-17 07:56:40 +0200 |
commit | f2484fe4b45b8ffecc2cbc2e957e72c9fb2e721b (patch) | |
tree | f3b1773b4df87568cf172f77b28be5319ff2e7e2 /buildstream | |
parent | 7acc64e408109f512c7b2666449d6c1ead499e4b (diff) | |
download | buildstream-f2484fe4b45b8ffecc2cbc2e957e72c9fb2e721b.tar.gz |
_artifactcache: Remove unused method can_diff()juerg/googlecas
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/_artifactcache/artifactcache.py | 9 | ||||
-rw-r--r-- | buildstream/_artifactcache/cascache.py | 3 |
2 files changed, 0 insertions, 12 deletions
diff --git a/buildstream/_artifactcache/artifactcache.py b/buildstream/_artifactcache/artifactcache.py index f33b112bc..4aa7ec555 100644 --- a/buildstream/_artifactcache/artifactcache.py +++ b/buildstream/_artifactcache/artifactcache.py @@ -242,15 +242,6 @@ class ArtifactCache(): raise ImplError("Cache '{kind}' does not implement commit()" .format(kind=type(self).__name__)) - # can_diff(): - # - # Whether this cache implementation can diff (unfortunately - # there's no way to tell if an implementation is going to throw - # ImplError without abc). - # - def can_diff(self): - return False - # diff(): # # Return a list of files that have been added or modified between diff --git a/buildstream/_artifactcache/cascache.py b/buildstream/_artifactcache/cascache.py index a3fd16af4..4f61edd7d 100644 --- a/buildstream/_artifactcache/cascache.py +++ b/buildstream/_artifactcache/cascache.py @@ -113,9 +113,6 @@ class CASCache(ArtifactCache): for ref in refs: self.set_ref(ref, tree) - def can_diff(self): - return True - def diff(self, element, key_a, key_b, *, subdir=None): ref_a = self.get_artifact_fullname(element, key_a) ref_b = self.get_artifact_fullname(element, key_b) |