summaryrefslogtreecommitdiff
path: root/src/buildstream/plugin.py
diff options
context:
space:
mode:
authorBenjamin Schubert <contact@benschubert.me>2019-07-08 19:15:39 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commit61ea58e52b75802ea0e4b760563a50149c905b31 (patch)
treef9e9c4838ecaf84b98b8bb70f04c60f6df66b56f /src/buildstream/plugin.py
parent099e3ebf3aad424be2f3488aef9d9d961b700483 (diff)
downloadbuildstream-61ea58e52b75802ea0e4b760563a50149c905b31.tar.gz
plugin: remove 'node_get_provenance', use the Node API directly
Diffstat (limited to 'src/buildstream/plugin.py')
-rw-r--r--src/buildstream/plugin.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/buildstream/plugin.py b/src/buildstream/plugin.py
index 92e52504d..ac7b0948e 100644
--- a/src/buildstream/plugin.py
+++ b/src/buildstream/plugin.py
@@ -346,22 +346,6 @@ class Plugin():
"""
return self.__kind
- def node_provenance(self, node, member_name=None):
- """Gets the provenance for `node` and `member_name`
-
- This reports a string with file, line and column information suitable
- for reporting an error or warning.
-
- Args:
- node (Node): The YAML loaded dictionary object
- member_name (str): The name of the member to check, or None for the node itself
-
- Returns:
- (str): A string describing the provenance of the node and member
- """
- provenance = node.get_node(member_name).get_provenance()
- return str(provenance)
-
def node_get_project_path(self, node, *,
check_is_file=False, check_is_dir=False):
"""Fetches a project path from a dictionary node and validates it