Remove dead dependency injection code

This code was superceded by the provider_api module. We should
continue using that module instead. This module isn't used anymore
and it should start getting phased out.

Change-Id: Ib3a494e04c58f0b91fa63b48312702ab0d2f74d2
This commit is contained in:
Lance Bragstad 2018-05-03 21:23:38 +00:00
parent ec338a3374
commit 41ca2d74c0

View File

@ -14,12 +14,9 @@
"""This module provides support for dependency injection.
Providers are registered via the ``@provider()`` decorator, and dependencies on
them are registered with ``@requires()``. Providers are available to their
consumers via an attribute. See the documentation for the individual functions
for more detail.
See also:
WARNING: Use the ``keystone.common.provider_api`` module instead. This module
is going away in favor of an implementation that is better about following the
dependency injection model:
https://en.wikipedia.org/wiki/Dependency_injection
@ -53,20 +50,6 @@ class UnresolvableDependencyException(Exception):
super(UnresolvableDependencyException, self).__init__(msg)
def provider(name):
"""Deprecated, does nothing."""
def wrapper(cls):
return cls
return wrapper
def requires(*dependencies):
"""Deprecated, does nothing."""
def wrapped(cls):
return cls
return wrapped
def resolve_future_dependencies(__provider_name=None):
"""Deprecated, does nothing."""
return {}