From b4c033d5567d71423b4144accaaa6887b532d693 Mon Sep 17 00:00:00 2001 From: Serhii Tereshchenko Date: Tue, 28 Feb 2023 16:15:05 +0200 Subject: Remove unused `_setupfuns` from serialization.py Looks like `_setupfuns` is unused and should be removed. If they're used somehow, please explain how, so i can add comment here to avoid future confusion. --- kombu/serialization.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/kombu/serialization.py b/kombu/serialization.py index f807b2bd..5cddeb0b 100644 --- a/kombu/serialization.py +++ b/kombu/serialization.py @@ -384,18 +384,6 @@ register_msgpack() # Default serializer is 'json' registry._set_default_serializer('json') - -_setupfuns = { - 'json': register_json, - 'pickle': register_pickle, - 'yaml': register_yaml, - 'msgpack': register_msgpack, - 'application/json': register_json, - 'application/x-yaml': register_yaml, - 'application/x-python-serialize': register_pickle, - 'application/x-msgpack': register_msgpack, -} - NOTSET = object() -- cgit v1.2.1