From b9e374d0954f8d6e2b69ea3d3996c9464d01b143 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Mon, 26 Aug 2019 17:03:43 +0100 Subject: [PATCH] trivial: Remove dead code We only support Django >= 1.11 now. Who cares about Django < 1.7. Change-Id: I3576b921b976ef9e5bb1561bda85348112e4b6e8 Signed-off-by: Stephen Finucane --- openstack_auth/forms.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/openstack_auth/forms.py b/openstack_auth/forms.py index 883bf7611d..3ead788484 100644 --- a/openstack_auth/forms.py +++ b/openstack_auth/forms.py @@ -158,6 +158,4 @@ class Login(django_auth_forms.AuthenticationForm): {'username': username, 'domain': domain, 'remote_ip': utils.get_client_ip(self.request)}) raise forms.ValidationError(exc) - if hasattr(self, 'check_for_test_cookie'): # Dropped in django 1.7 - self.check_for_test_cookie() return self.cleaned_data