From 49f767449a6baeb38cb3bf4fde8212354ab71bad Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Wed, 23 Sep 2020 15:34:47 +1200 Subject: [PATCH] remove some dead code --- subiquity/core.py | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/subiquity/core.py b/subiquity/core.py index 779006d6..e69cca92 100644 --- a/subiquity/core.py +++ b/subiquity/core.py @@ -16,12 +16,10 @@ import asyncio import logging import os -import platform import shlex import signal import sys import traceback -import urwid import aiohttp @@ -141,9 +139,6 @@ class Subiquity(TuiApplication): ] def __init__(self, opts, block_log_dir): - if not opts.bootloader == 'none' and platform.machine() != 's390x': - self.controllers.remove("Zdev") - if is_linux_tty(): self.input_filter = KeyCodesFilter() else: @@ -180,10 +175,6 @@ class Subiquity(TuiApplication): self.client = make_client_for_conn(API, self.conn, self.resp_hook) self.autoinstall_config = {} - self.report_to_show = None - self.show_progress_handle = None - self.progress_shown_time = self.aio_loop.time() - self.progress_showing = False self.error_reporter = ErrorReporter( self.context.child("ErrorReporter"), self.opts.dry_run, self.root, self.client) @@ -245,16 +236,6 @@ class Subiquity(TuiApplication): ] + sys.argv[1:] os.execvp(cmdline[0], cmdline) - def make_screen(self, input=None, output=None): - if self.interactive(): - return super().make_screen(input, output) - else: - r, w = os.pipe() - s = urwid.raw_display.Screen( - input=os.fdopen(r), output=open('/dev/null', 'w')) - s.get_cols_rows = lambda: (80, 24) - return s - def get_primary_tty(self): tty = '/dev/tty1' for work in self.kernel_cmdline: @@ -408,12 +389,6 @@ class Subiquity(TuiApplication): self.install_confirmed = True self.controllers.InstallProgress.confirmation.set() - def _cancel_show_progress(self): - if self.show_progress_handle is not None: - self.ui.block_input = False - self.show_progress_handle.cancel() - self.show_progress_handle = None - def interactive(self): if not self.autoinstall_config: return True