From da3bfff3a1d42d0db144565eaad3710df833d0b5 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 11 Apr 2018 10:35:56 +1200 Subject: rrs: drop a couple of unused functions from Raw class These two functions aren't being used anywhere. In the interest of having as little code directly reading the database using SQL as possible, drop them. Signed-off-by: Paul Eggleton --- rrs/views.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/rrs/views.py b/rrs/views.py index 432e30ac03..fae34d641b 100644 --- a/rrs/views.py +++ b/rrs/views.py @@ -76,15 +76,6 @@ class Raw(): remahi: Recipe Maintainer History """ - @staticmethod - def get_re_all(): - """ Get all Recipes """ - cur = connection.cursor() - cur.execute("""SELECT id, pn, pv, summary - FROM layerindex_recipe; - """) - return Raw.dictfetchall(cur) - @staticmethod def get_re_by_mantainer_and_date(maintainer, date_id): """ Get Recipes based on Maintainer and Recipe Maintainer History """ @@ -214,18 +205,6 @@ class Raw(): """, [date]) return Raw.dictfetchall(cur) - @staticmethod - def get_reupg_by_dates(start_date, end_date): - """ Get Recipe Upgrade for the milestone """ - cur = connection.cursor() - cur.execute("""SELECT id, recipe_id, maintainer_id, author_date, commit_date - FROM rrs_recipeupgrade - WHERE commit_date >= %s - AND commit_date <= %s - ORDER BY commit_date DESC; - """, [start_date, end_date]) - return Raw.dictfetchall(cur) - @staticmethod def get_reupg_by_dates_and_recipes(start_date, end_date, recipes_id): """ Get Recipe Upgrade for the milestone based on Recipes """ -- cgit 1.2.3-korg