]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Remove raw_template_get_all from db api
authorLiang Chen <cbjchen@cn.ibm.com>
Wed, 7 Aug 2013 00:18:14 +0000 (08:18 +0800)
committerLiang Chen <cbjchen@cn.ibm.com>
Thu, 8 Aug 2013 15:39:13 +0000 (23:39 +0800)
This is not used anywhere in the code base anymore, and does not
seem to be useful in the future.

Change-Id: I5964bc0d402abdb5dde889a4c605fe4d4b4b1376

heat/db/api.py
heat/db/sqlalchemy/api.py

index 0120e1ea84dcedece8f1a4cf9c0dde1cccb43841..2b36f650362a892a28c5c58c2e41662a9563b984 100644 (file)
@@ -62,10 +62,6 @@ def raw_template_get(context, template_id):
     return IMPL.raw_template_get(context, template_id)
 
 
-def raw_template_get_all(context):
-    return IMPL.raw_template_get_all(context)
-
-
 def raw_template_create(context, values):
     return IMPL.raw_template_create(context, values)
 
index aa4f40494631ad3b01cb61bb1103efad5b4a4a25..d3dc88cc4fdfbf0aaf524d27204a1502ccd96d81 100644 (file)
@@ -65,15 +65,6 @@ def raw_template_get(context, template_id):
     return result
 
 
-def raw_template_get_all(context):
-    results = model_query(context, models.RawTemplate).all()
-
-    if not results:
-        raise exception.NotFound('no raw templates were found')
-
-    return results
-
-
 def raw_template_create(context, values):
     raw_template_ref = models.RawTemplate()
     raw_template_ref.update(values)