From 274dcb0732b62a858961bc974af08f060e94ea79 Mon Sep 17 00:00:00 2001 From: alwaysintreble Date: Mon, 29 Jan 2024 20:02:35 -0600 Subject: [PATCH] remove a missed debug and unused function --- CommonClient.py | 1 - Launcher.py | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/CommonClient.py b/CommonClient.py index 038a856a3287..f630e6c6748a 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -886,7 +886,6 @@ def get_base_parser(description: typing.Optional[str] = None): def run_as_textclient(*args): - logger.info(args) class TextContext(CommonContext): # Text Mode to use !hint and such with games that have no text entry tags = CommonContext.tags | {"TextOnly"} diff --git a/Launcher.py b/Launcher.py index a216c3308a2b..b6c3e9254225 100644 --- a/Launcher.py +++ b/Launcher.py @@ -268,15 +268,6 @@ def run_component(component: Component, *args): logging.warning(f"Component {component} does not appear to be executable.") -def find_component(game: str) -> Component: - for component in components: - if component.game_name and component.game_name == game: - return component - elif component.display_name == "Text Client": - text_client_component = component - return text_client_component - - def main(args: Optional[Union[argparse.Namespace, dict]] = None): if isinstance(args, argparse.Namespace): args = {k: v for k, v in args._get_kwargs()} @@ -292,7 +283,6 @@ def main(args: Optional[Union[argparse.Namespace, dict]] = None): if not component: logging.warning(f"Could not identify Component responsible for {args['Patch|Game|Component']}") - if args["update_settings"]: update_settings() if "file" in args: