This is an automated email from the ASF dual-hosted git repository. not-in-ldap pushed a commit to branch bschubert/more-mypy in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit e742930370b0c9deb2b6f99867b37aecc40c263d Author: Benjamin Schubert <[email protected]> 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
