summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoni Rabkin <yrk@gnu.org>2015-05-20 10:30:20 -0400
committerYoni Rabkin <yrk@gnu.org>2015-05-20 10:30:20 -0400
commite5fe16e4b2d27778b9ddc488c51fd34889cd197f (patch)
tree255195b4bf932359c14c6701aaf18b311db6e8a3
parent46d4ec196a74b9261ff2e0615a37d621ee875812 (diff)
Remove more spam related code.
Hopefully this can be reimplemented soon.
-rw-r--r--rt-liberation-multi.el12
-rw-r--r--rt-liberation.el16
2 files changed, 0 insertions, 28 deletions
diff --git a/rt-liberation-multi.el b/rt-liberation-multi.el
index 1faa682..4fe53b5 100644
--- a/rt-liberation-multi.el
+++ b/rt-liberation-multi.el
@@ -96,18 +96,6 @@
ticket-id name))
(rt-liber-browser-refresh))
-(defun rt-liber-multi-flag-as-spam-and-delete ()
- "Flag all marked tickets as spam, and delete them."
- (interactive)
- (when (not rt-liber-marked-tickets)
- (error "no marked tickets"))
- (dolist (ticket-id rt-liber-marked-tickets)
- (rt-liber-command-set-cf
- ticket-id
- (rt-liber-command-get-custom-field-string
- 'cf-is-spam) "yes")
- (rt-liber-command-set-status-deleted ticket-id))
- (rt-liber-browser-refresh))
(provide 'rt-liberation-multi)
diff --git a/rt-liberation.el b/rt-liberation.el
index 9856e91..860facc 100644
--- a/rt-liberation.el
+++ b/rt-liberation.el
@@ -1115,22 +1115,6 @@ string then that will be the name of the new buffer."
;;; Major mode definitions
;;; --------------------------------------------------------
-(declare-function
- rt-liber-multi-flag-as-spam-and-delete
- "rt-liberation-multi.el")
-
-;; Unfortunately, RT have broken this. Hope I can fix it by moving
-;; over the the REST interface.
-(defun rt-liber-multi-delete-spam ()
- "Delete marked tickets as spam."
- (interactive)
- (error "this feature is currently broken! I'm working on it...")
- ;; (cond ((featurep 'rt-liberation-multi)
- ;; (when (y-or-n-p "Delete marked tickets as spam? ")
- ;; (rt-liber-multi-flag-as-spam-and-delete)))
- ;; (t (error "rt-liberation-multi isn't loaded")))
- )
-
(defun rt-liber-browser-mode-quit ()
"Bury the ticket browser."
(interactive)