summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Ripton <dripton@redhat.com>2012-11-07 16:40:16 -0500
committerDavid Ripton <dripton@redhat.com>2012-11-07 16:43:37 -0500
commita5e42d4ba779c2824957dd9521ff294fd8499761 (patch)
treec0ca32ab970938aabff786187613bae9a3d722be
parent8117306c65f07464c586f9518d83214715611623 (diff)
Remove unused function require_instance_exists
Change-Id: I9862daebaadca4af0c1ec47ddb66e329cdce98a7
-rw-r--r--nova/db/sqlalchemy/api.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/nova/db/sqlalchemy/api.py b/nova/db/sqlalchemy/api.py
index 865bb05f1..2f33eda0c 100644
--- a/nova/db/sqlalchemy/api.py
+++ b/nova/db/sqlalchemy/api.py
@@ -125,20 +125,6 @@ def require_context(f):
return wrapper
-def require_instance_exists(f):
- """Decorator to require the specified instance to exist.
-
- Requires the wrapped function to use context and instance_id as
- their first two arguments.
- """
- @functools.wraps(f)
- def wrapper(context, instance_id, *args, **kwargs):
- db.instance_get(context, instance_id)
- return f(context, instance_id, *args, **kwargs)
-
- return wrapper
-
-
def require_instance_exists_using_uuid(f):
"""Decorator to require the specified instance to exist.