From f77cbbc9f421bf08e077e960eaebf2ac6b6d2b69 Mon Sep 17 00:00:00 2001 From: Liang Chen Date: Wed, 7 Aug 2013 08:18:14 +0800 Subject: [PATCH] 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 --- heat/db/api.py | 4 ---- heat/db/sqlalchemy/api.py | 9 --------- 2 files changed, 13 deletions(-) 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) -- 2.45.2