diff --git a/objects/__init__.py b/objects/__init__.py index 7618ee0a..fdafea69 100644 --- a/objects/__init__.py +++ b/objects/__init__.py @@ -5,7 +5,7 @@ from .catalog import Catalog, overrides from .providers import (Provider, NewInstance, Singleton, Class, Object, Function, Value) -from .injections import InitArg, Attribute, Method, uses +from .injections import InitArg, Attribute, Method __all__ = ['Catalog', 'overrides', @@ -15,4 +15,4 @@ __all__ = ['Catalog', 'overrides', 'Object', 'Function', 'Value', # Injections - 'InitArg', 'Attribute', 'Method', 'uses'] + 'InitArg', 'Attribute', 'Method'] diff --git a/objects/injections.py b/objects/injections.py index 14d51479..2c64940e 100644 --- a/objects/injections.py +++ b/objects/injections.py @@ -2,9 +2,6 @@ Injections module. """ -from inspect import isclass -from functools import wraps - class Injection(object): """ @@ -44,14 +41,3 @@ class Method(Injection): """ Method injection. """ - - -def uses(provider): - """ - Providers usage decorator. - """ - def decorator(cls): - catalog = getattr(cls, 'catalog') - # catalog.__add__provider__(provider) - return cls - return decorator