From 3520a4cc1b5f9958748ca1f105534b180e728bec Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 13 Dec 2018 22:55:51 +0100 Subject: [PATCH 1/4] api: remove unused function (#28962) --- src/authentic2/api_views.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/authentic2/api_views.py b/src/authentic2/api_views.py index 8023cfad..d582a28f 100644 --- a/src/authentic2/api_views.py +++ b/src/authentic2/api_views.py @@ -305,11 +305,6 @@ def user(request): return request.user.to_json() -def attributes_hash(attributes): - attributes = sorted(attributes, key=lambda at: at.name) - return hash(tuple((at.name, at.required) for at in attributes)) - - class BaseUserSerializer(serializers.ModelSerializer): ou = serializers.SlugRelatedField( queryset=get_ou_model().objects.all(), -- 2.18.0