From 0f45f2869648a5f17d1a2325b11444842fc821a6 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Fri, 23 Mar 2018 15:30:16 -0400 Subject: [PATCH] run.py: Remove unused name_and_path_match(). --- zulip_bots/zulip_bots/run.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/zulip_bots/zulip_bots/run.py b/zulip_bots/zulip_bots/run.py index 126765e..172d2d8 100755 --- a/zulip_bots/zulip_bots/run.py +++ b/zulip_bots/zulip_bots/run.py @@ -43,14 +43,6 @@ def import_module_from_source(path, name=None): return module -def name_and_path_match(given_name, path_to_bot): - # type: (Text, Text) -> bool - if given_name and path_to_bot: - name_by_path = os.path.splitext(os.path.basename(path_to_bot))[0] - if (given_name != name_by_path): - return False - return True - def parse_args(): # type: () -> argparse.Namespace usage = '''