summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-10-10 18:37:05 +0100
committerBenjamin Schubert <contact@benschubert.me>2019-10-16 13:53:23 +0100
commitb07ca0c2ba8c6fdaf3e242f6cbcab84d1bef7060 (patch)
tree24ccb068c606b371f829e860d008102e9c153ede
parent0cc53801868a0b85c81bb68579153a04cb7a5faf (diff)
downloadbuildstream-b07ca0c2ba8c6fdaf3e242f6cbcab84d1bef7060.tar.gz
element.py: Remove '_subst_string'
This is now unused. An alternative is 'node_subst_vars'.
-rw-r--r--src/buildstream/element.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index 58fd2c33b..8953ac245 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -2079,21 +2079,6 @@ class Element(Plugin):
os.chmod(script_path, stat.S_IEXEC | stat.S_IREAD)
- # _subst_string()
- #
- # Substitue a string, this is an internal function related
- # to how junctions are loaded and needs to be more generic
- # than the public node_subst_member()
- #
- # Args:
- # value (str): A string value
- #
- # Returns:
- # (str): The string after substitutions have occurred
- #
- def _subst_string(self, value):
- return self.__variables.subst(value)
-
# Returns the element whose sources this element is ultimately derived from.
#
# This is intended for being used to redirect commands that operate on an