diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2019-07-05 15:14:30 +0100 |
---|---|---|
committer | Angelos Evripiotis <angelos.evripiotis@gmail.com> | 2019-07-09 20:48:09 +0000 |
commit | 4c1017ae2eca81d2f60c01f6a6781efea0cfc753 (patch) | |
tree | 2a8c8cb400b359e643b503310a8074dc769bb09e | |
parent | 55b3342fc5b536ed90b701bf6d83b61090346797 (diff) | |
download | buildstream-4c1017ae2eca81d2f60c01f6a6781efea0cfc753.tar.gz |
_frontend: rm unused _line_length and Space widget
-rw-r--r-- | src/buildstream/_frontend/status.py | 2 | ||||
-rw-r--r-- | src/buildstream/_frontend/widget.py | 8 |
2 files changed, 0 insertions, 10 deletions
diff --git a/src/buildstream/_frontend/status.py b/src/buildstream/_frontend/status.py index f0fb22639..32fda1147 100644 --- a/src/buildstream/_frontend/status.py +++ b/src/buildstream/_frontend/status.py @@ -76,7 +76,6 @@ class Status(): self._term_width, _ = click.get_terminal_size() self._alloc_lines = 0 self._alloc_columns = None - self._line_length = 0 self._need_alloc = True self._term_caps = self._init_terminal() @@ -258,7 +257,6 @@ class Status(): self._alloc_lines = alloc_lines self._alloc_columns = alloc_columns - self._line_length = line_length self._need_alloc = False def _job_lines(self, columns): diff --git a/src/buildstream/_frontend/widget.py b/src/buildstream/_frontend/widget.py index 769c95e75..bc49e2927 100644 --- a/src/buildstream/_frontend/widget.py +++ b/src/buildstream/_frontend/widget.py @@ -74,13 +74,6 @@ class Widget(): raise ImplError("{} does not implement render()".format(type(self).__name__)) -# Used to add spacing between columns -class Space(Widget): - - def render(self, message): - return ' ' - - # Used to add fixed text between columns class FixedText(Widget): @@ -330,7 +323,6 @@ class LogLine(Widget): self._resolved_keys = None self._state = state - self._space_widget = Space(context, content_profile, format_profile) self._logfile_widget = LogFile(context, content_profile, format_profile, err_profile) if context.log_debug: |