From: Liang Chen Date: Wed, 7 Aug 2013 00:18:14 +0000 (+0800) Subject: Remove raw_template_get_all from db api X-Git-Tag: 2014.1~252^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=f77cbbc9f421bf08e077e960eaebf2ac6b6d2b69;p=openstack-build%2Fheat-build.git Remove raw_template_get_all from db api This is not used anywhere in the code base anymore, and does not seem to be useful in the future. Change-Id: I5964bc0d402abdb5dde889a4c605fe4d4b4b1376 --- diff --git a/heat/db/api.py b/heat/db/api.py index 0120e1ea..2b36f650 100644 --- a/heat/db/api.py +++ b/heat/db/api.py @@ -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) diff --git a/heat/db/sqlalchemy/api.py b/heat/db/sqlalchemy/api.py index aa4f4049..d3dc88cc 100644 --- a/heat/db/sqlalchemy/api.py +++ b/heat/db/sqlalchemy/api.py @@ -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)