We're about to replace this with a proper CSV export function, so we
don't need this dead code hanging around anymore.

Signed-off-by: Paul Eggleton <[email protected]>
---
 layerindex/urls.py                  | 8 +-------
 layerindex/urls_branch.py           | 2 +-
 layerindex/views.py                 | 7 -------
 templates/layerindex/rawrecipes.txt | 2 --
 4 files changed, 2 insertions(+), 17 deletions(-)
 delete mode 100644 templates/layerindex/rawrecipes.txt

diff --git a/layerindex/urls.py b/layerindex/urls.py
index b0b74314..f80606fc 100644
--- a/layerindex/urls.py
+++ b/layerindex/urls.py
@@ -8,7 +8,7 @@ from django.conf.urls import *
 from django.views.generic import TemplateView, DetailView, ListView, 
RedirectView
 from django.views.defaults import page_not_found
 from django.core.urlresolvers import reverse_lazy
-from layerindex.views import LayerListView, LayerReviewListView, 
LayerReviewDetailView, RecipeSearchView, MachineSearchView, PlainTextListView, 
LayerDetailView, edit_layer_view, delete_layer_view, edit_layernote_view, 
delete_layernote_view, HistoryListView, EditProfileFormView, 
AdvancedRecipeSearchView, BulkChangeView, BulkChangeSearchView, 
bulk_change_edit_view, bulk_change_patch_view, BulkChangeDeleteView, 
RecipeDetailView, RedirectParamsView, ClassicRecipeSearchView, 
ClassicRecipeDetailView, ClassicRecipeStatsView, LayerUpdateDetailView, 
UpdateListView, UpdateDetailView, StatsView, publish_view
+from layerindex.views import LayerListView, LayerReviewListView, 
LayerReviewDetailView, RecipeSearchView, MachineSearchView, LayerDetailView, 
edit_layer_view, delete_layer_view, edit_layernote_view, delete_layernote_view, 
HistoryListView, EditProfileFormView, AdvancedRecipeSearchView, BulkChangeView, 
BulkChangeSearchView, bulk_change_edit_view, bulk_change_patch_view, 
BulkChangeDeleteView, RecipeDetailView, RedirectParamsView, 
ClassicRecipeSearchView, ClassicRecipeDetailView, ClassicRecipeStatsView, 
LayerUpdateDetailView, UpdateListView, UpdateDetailView, StatsView, publish_view
 from layerindex.models import LayerItem, Recipe, RecipeChangeset
 from rest_framework import routers
 from . import restviews
@@ -101,12 +101,6 @@ urlpatterns = [
             name="bulk_change_delete"),
     url(r'^branch/(?P<branch>[-\w]+)/',
         include('layerindex.urls_branch')),
-    #url(r'^raw/recipes.txt$',
-    #    PlainTextListView.as_view(
-    #        queryset=Recipe.objects.order_by('pn', 'layerbranch__layer'),
-    #        context_object_name='recipe_list',
-    #        template_name='layerindex/rawrecipes.txt'),
-    #        name='recipe_list_raw'),
     url(r'^updates/$',
         UpdateListView.as_view(
             template_name='layerindex/updatelist.html'),
diff --git a/layerindex/urls_branch.py b/layerindex/urls_branch.py
index a71af1ce..0e41435e 100644
--- a/layerindex/urls_branch.py
+++ b/layerindex/urls_branch.py
@@ -7,7 +7,7 @@
 from django.conf.urls import *
 from django.views.defaults import page_not_found
 from django.core.urlresolvers import reverse_lazy
-from layerindex.views import LayerListView, RecipeSearchView, 
MachineSearchView, DistroSearchView, ClassSearchView, PlainTextListView, 
LayerDetailView, edit_layer_view, delete_layer_view, edit_layernote_view, 
delete_layernote_view, RedirectParamsView, DuplicatesView, LayerUpdateDetailView
+from layerindex.views import LayerListView, RecipeSearchView, 
MachineSearchView, DistroSearchView, ClassSearchView, LayerDetailView, 
edit_layer_view, delete_layer_view, edit_layernote_view, delete_layernote_view, 
RedirectParamsView, DuplicatesView, LayerUpdateDetailView
 
 urlpatterns = [
     url(r'^$', 
diff --git a/layerindex/views.py b/layerindex/views.py
index bc3cddfa..dbf08497 100644
--- a/layerindex/views.py
+++ b/layerindex/views.py
@@ -771,13 +771,6 @@ class ClassSearchView(ListView):
         context['this_url_name'] = resolve(self.request.path_info).url_name
         return context
 
-class PlainTextListView(ListView):
-    def render_to_response(self, context):
-        "Returns a plain text response rendering of the template"
-        template = get_template(self.template_name)
-        return HttpResponse(template.render(context),
-                                 content_type='text/plain')
-
 class HistoryListView(ListView):
     context_object_name = "revisions"
     paginate_by = 50
diff --git a/templates/layerindex/rawrecipes.txt 
b/templates/layerindex/rawrecipes.txt
deleted file mode 100644
index c1911c9c..00000000
--- a/templates/layerindex/rawrecipes.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-{% for recipe in recipe_list %}{{ recipe.layerbranch.layer.name }}     {{ 
recipe.pn }} {{ recipe.pv }} {{ recipe.full_path }}
-{% endfor %}
-- 
2.14.3

-- 
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to