From 764856d005424f0a4509f78fec57d979b9df198e Mon Sep 17 00:00:00 2001 From: Tristan van Berkom Date: Wed, 23 Sep 2020 13:13:20 +0900 Subject: element.py: Remove Element._get_brief_display_key() Now that we have _DisplayKey(), no need for this extra accessor, it's not helping anything to have it anymore. --- src/buildstream/element.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 016eddca1..a0c185522 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -1419,18 +1419,6 @@ class Element(Plugin): length = min(len(cache_key), context.log_key_length) return _DisplayKey(cache_key, cache_key[0:length], strict) - # _get_brief_display_key() - # - # Returns an abbreviated cache key for display purposes - # - # Returns: - # (str): An abbreviated hex digest cache key for this Element - # - # Question marks are returned if information for the cache key is missing. - # - def _get_brief_display_key(self): - return self._get_display_key().brief - # _tracking_done(): # # This is called in the main process after the element has been tracked -- cgit v1.2.1