Skip to content

Commit

Permalink
Remove unnecessary code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Mederle committed May 4, 2020
1 parent ffdb3e3 commit 9ff644d
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions jiralib.el
Original file line number Diff line number Diff line change
Expand Up @@ -523,30 +523,6 @@ emacs-lisp"

(apply 'vector (nreverse remote-field-values))))

(defvar jiralib-subvalue-map
'((assignee . displayName)
(creator . displayName)
(priority . name)
(issuetype . name)))

(defun jiralib-flatten-data (data)
"Extracts the displayName Value an creates a tuple of ((car list) . subvalue).
If no key is given, returns list as-is."
(loop for item in data collect
(cond ((and (listp (cdr item))
(assoc (car item) jiralib-subvalue-map))
(cons (car item) (cdr (assoc (cdr (assoc (car item) jiralib-subvalue-map)) (cdr item)))))
((listp (cdr item))
(cons (car item) (jiralib-flatten-data (cdr item))))
(t item))))









;;;; Wrappers around JIRA methods

Expand Down

0 comments on commit 9ff644d

Please sign in to comment.