diff options
author | Benjamin Schubert <bschubert15@bloomberg.net> | 2019-11-28 17:50:51 +0000 |
---|---|---|
committer | Benjamin Schubert <bschubert15@bloomberg.net> | 2020-01-16 16:33:19 +0000 |
commit | 5cb2442e789d6b302f7d261ba5d2a2ad5366d7c2 (patch) | |
tree | 172dcee0a766d70fb80c0b41d086c873a0268b44 /src/buildstream/_gitsourcebase.py | |
parent | 3be6d07753599ef54b9e80ac066571632e217ce2 (diff) | |
download | buildstream-5cb2442e789d6b302f7d261ba5d2a2ad5366d7c2.tar.gz |
source.py: Remove 'get_consistency' completely
This is not needed now that we have 'is_resolved' and 'is_cached'.
We can therefore drop all calling places and implementations of it.
Diffstat (limited to 'src/buildstream/_gitsourcebase.py')
-rw-r--r-- | src/buildstream/_gitsourcebase.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/buildstream/_gitsourcebase.py b/src/buildstream/_gitsourcebase.py index 125d34df4..a8253e36f 100644 --- a/src/buildstream/_gitsourcebase.py +++ b/src/buildstream/_gitsourcebase.py @@ -30,7 +30,7 @@ from tempfile import TemporaryFile from configparser import RawConfigParser from .source import Source, SourceError, SourceFetcher -from .types import Consistency, CoreWarnings +from .types import CoreWarnings from . import utils from .types import FastEnum from .utils import move_atomic, DirectoryExistsError @@ -517,13 +517,6 @@ class _GitSourceBase(Source): return key - def get_consistency(self): - if self._have_all_refs(): - return Consistency.CACHED - elif self.mirror.ref is not None: - return Consistency.RESOLVED - return Consistency.INCONSISTENT - def is_resolved(self): return self.mirror.ref is not None |