]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/views/patch.py
Remove unused templates and some code for processing them
[patchwork] / apps / patchwork / views / patch.py
index 3dac149acd393d119ccf2b53c6f9632f77a7f231..66b314e4068fc680c49f3f089cb92813753f988d 100644 (file)
@@ -85,23 +85,6 @@ def patch(request, patch_id):
                 form.save()
                 context.add_message('Patch updated')
 
-        elif action == 'archive':
-            patch.archived = True
-            patch.save()
-            context.add_message('Patch archived')
-
-        elif action == 'unarchive':
-            patch.archived = False
-            patch.save()
-            context.add_message('Patch un-archived')
-
-        elif action == 'ack':
-            pass
-
-        elif action == 'delete':
-            patch.delete()
-
-
     context['patch'] = patch
     context['patchform'] = form
     context['createbundleform'] = createbundleform