]> git.cworth.org Git - turbot/commitdiff
Drop unused initialization of submission_handlers dictionary
authorCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2020 20:38:40 +0000 (13:38 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2020 20:38:40 +0000 (13:38 -0700)
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.

turbot/actions.py

index 700a7b49c62cdba9d8c91ee331606b64daa03acc..9df05ad90399c7a4aa3a4c37c2b41369cc7c40a0 100644 (file)
@@ -121,7 +121,3 @@ actions = {
         "new_hunt": new_hunt
     }
 }
-
-submission_handlers = {
-    "new_hunt": new_hunt_submission
-}