You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/02/04 07:24:19 UTC
[buildstream] 04/10: element.py: Remove '_subst_string'
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch bschubert/more-mypy
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit e742930370b0c9deb2b6f99867b37aecc40c263d
Author: Benjamin Schubert <co...@benschubert.me>
AuthorDate: Thu Oct 10 18:37:05 2019 +0100
element.py: Remove '_subst_string'
This is now unused. An alternative is 'node_substitute_variables'.
---
src/buildstream/element.py | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index f95ac9b..6ff4016 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