From: Carl Worth Date: Wed, 21 Oct 2020 20:38:40 +0000 (-0700) Subject: Drop unused initialization of submission_handlers dictionary X-Git-Url: https://git.cworth.org/git?p=turbot;a=commitdiff_plain;h=604726e8bba798d609253f9b1e8bb88fafa7062c Drop unused initialization of submission_handlers dictionary We don't use this dictionary with any statically-initialized keys, (such as "new_hunt" as we have it here). Instead, this dictionary is populated dynamically with keys that are view IDs. So we can just drop this initialization here and everything continues to work as is. --- diff --git a/turbot/actions.py b/turbot/actions.py index 700a7b4..9df05ad 100644 --- a/turbot/actions.py +++ b/turbot/actions.py @@ -121,7 +121,3 @@ actions = { "new_hunt": new_hunt } } - -submission_handlers = { - "new_hunt": new_hunt_submission -}