From 5242c2371b145bb88c467168b8e027ff38693706 Mon Sep 17 00:00:00 2001 From: Jamie Lennox Date: Wed, 24 Aug 2016 18:56:23 +1000 Subject: [PATCH] Remove unauthenticated functions These were used by the shell which has since been removed. Change-Id: If329da4499b76799356e79099f86a4afdebb00ce --- keystoneclient/utils.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/keystoneclient/utils.py b/keystoneclient/utils.py index 7030f51bc..ae0d45b9b 100644 --- a/keystoneclient/utils.py +++ b/keystoneclient/utils.py @@ -52,30 +52,6 @@ def find_resource(manager, name_or_id): raise exceptions.CommandError(msg) -def unauthenticated(f): - """Add 'unauthenticated' attribute to decorated function. - - Usage:: - - @unauthenticated - def mymethod(f): - ... - """ - f.unauthenticated = True - return f - - -def isunauthenticated(f): - """Check if function requires authentication. - - Checks to see if the function is marked as not requiring authentication - with the @unauthenticated decorator. - - Returns True if decorator is set to True, False otherwise. - """ - return getattr(f, 'unauthenticated', False) - - def hash_signed_token(signed_text, mode='md5'): hash_ = hashlib.new(mode) hash_.update(signed_text)