summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-07-16 16:10:46 +0200
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-16 14:49:57 +0000
commit411a62bd2d786cd3910f9bbbbd96b4b254816f6a (patch)
treec4912990f2e99f1929db353f73ee4854c4775e50
parent500da4a9994e311127e1e0bc25507bfd36f3fafa (diff)
downloadbuildstream-411a62bd2d786cd3910f9bbbbd96b4b254816f6a.tar.gz
_context.py: Remove unused _cache_key and get_cache_key()
-rw-r--r--src/buildstream/_context.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/buildstream/_context.py b/src/buildstream/_context.py
index 1e45d776d..bb9825f44 100644
--- a/src/buildstream/_context.py
+++ b/src/buildstream/_context.py
@@ -20,7 +20,6 @@
import os
import shutil
from . import utils
-from . import _cachekey
from . import _site
from . import _yaml
from ._exceptions import LoadError, LoadErrorReason
@@ -154,7 +153,6 @@ class Context():
self.messenger = Messenger()
# Private variables
- self._cache_key = None
self._artifactcache = None
self._sourcecache = None
self._projects = []
@@ -455,21 +453,6 @@ class Context():
# value which we cache here too.
return self._strict_build_plan
- # get_cache_key():
- #
- # Returns the cache key, calculating it if necessary
- #
- # Returns:
- # (str): A hex digest cache key for the Context
- #
- def get_cache_key(self):
- if self._cache_key is None:
-
- # Anything that alters the build goes into the unique key
- self._cache_key = _cachekey.generate_key({})
-
- return self._cache_key
-
# set_artifact_directories_optional()
#
# This indicates that the current context (command or configuration)