summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGuilherme Salgado <guilherme.salgado@linaro.org>2011-02-23 06:34:40 +0000
committerJeremy Kerr <jk@ozlabs.org>2011-03-08 15:07:33 +0800
commitf7a3c5dff0da19e6bd737c51187a1f5aa7373c67 (patch)
tree416a2857c6389c85a057a2a9f16b0a8eb67eef4d /apps
parent5d56a58406cbc06012d1f1c994be4b5118ecda9c (diff)
downloadpatchwork-f7a3c5dff0da19e6bd737c51187a1f5aa7373c67.tar.bz2
patchwork-f7a3c5dff0da19e6bd737c51187a1f5aa7373c67.tar.xz
Remove unused templates and some code for processing them
These seem to be what was used in the past to archive/unarchive and delete patches. Signed-off-by: Guilherme Salgado <guilherme.salgado@linaro.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps')
-rw-r--r--apps/patchwork/utils.py17
-rw-r--r--apps/patchwork/views/patch.py17
2 files changed, 0 insertions, 34 deletions
diff --git a/apps/patchwork/utils.py b/apps/patchwork/utils.py
index fa26aef..b6d86a4 100644
--- a/apps/patchwork/utils.py
+++ b/apps/patchwork/utils.py
@@ -174,23 +174,6 @@ def set_patches(user, project, action, data, patches, context):
form.save(patch)
str = 'updated'
- elif action == 'ack':
- pass
-
- elif action == 'archive':
- patch.archived = True
- patch.save()
- str = 'archived'
-
- elif action == 'unarchive':
- patch.archived = False
- patch.save()
- str = 'un-archived'
-
- elif action == 'delete':
- patch.delete()
- str = 'un-archived'
-
if len(patches) > 0:
if len(patches) == 1:
diff --git a/apps/patchwork/views/patch.py b/apps/patchwork/views/patch.py
index 3dac149..66b314e 100644
--- a/apps/patchwork/views/patch.py
+++ b/apps/patchwork/views/patch.py
@@ -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