Remove dead code in token provider

The _verify_token_ref() method is a dead section of code that was
last called in:

  I62cc1d5efbe0869fd0e501aaa9405ff0b0da0e5e

This commit removes the method since it is no longer called anywhere
and hasn't since the Icehouse release.

Change-Id: I1b6ed09e9c9ad9214cd6e2c0f5849bb8550fbf3f
This commit is contained in:
Lance Bragstad 2018-05-03 20:55:47 +00:00
parent ec338a3374
commit 256e76392d
1 changed files with 0 additions and 6 deletions

View File

@ -637,12 +637,6 @@ class BaseProvider(provider_api.ProviderAPIMixin, base.Provider):
return token_data
def _verify_token_ref(self, token_ref):
"""Verify and return the given token_ref."""
if not token_ref:
raise exception.Unauthorized(_('Token is absent'))
return token_ref
def validate_token(self, token_id):
try:
(user_id, methods, audit_ids, system, domain_id,