]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/utils.py
Remove unused templates and some code for processing them
[patchwork] / apps / patchwork / utils.py
index fa26aef7e674d8be9ee299e0556cdc93c4ca1e0a..b6d86a4ddbd517892078b6030c32018f9dc0306a 100644 (file)
@@ -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: