yas-x-prompt: remove dead code

This commit is contained in:
Noam Postavsky 2014-03-04 21:46:05 -05:00
parent 4470110384
commit c07db054ec

View File

@ -1543,22 +1543,17 @@ Optional PROMPT sets the prompt to use."
;;
(when (and window-system choices)
(or
(let* ((display-fn (or display-fn #'identity))
(menu
(list prompt
(cons "title"
(mapcar (lambda (c)
(let ((d (funcall display-fn c)))
(cond ((stringp d) (cons (concat " " d) c))
((listp d) (car d)))))
choices)))))
(x-popup-menu (if (fboundp 'posn-at-point)
(x-popup-menu
(if (fboundp 'posn-at-point)
(let ((x-y (posn-x-y (posn-at-point (point)))))
(list (list (+ (car x-y) 10)
(+ (cdr x-y) 20))
(selected-window)))
t)
menu))
`(,prompt ("title"
,@(mapcar* (lambda (c d) `(,(concat " " d) . ,c))
choices
(if display-fn (mapcar display-fn choices) choices)))))
(keyboard-quit))))
(defun yas--x-pretty-prompt-templates (prompt templates)