Skip to content

Commit 735df40

Browse files
Remove unused hydra helpers
1 parent 2564f24 commit 735df40

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

clj-refactor.el

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -358,36 +358,6 @@ Otherwise open the file and do the changes non-interactively."
358358
("ht" . (hydra-cljr-toplevel-form-menu/body "Hydra menu for top level refactorings " ?t ("hydra")))
359359
("hs" . (hydra-cljr-cljr-menu/body "Hydra menu for self features" ?s ("hydra")))))
360360

361-
(defun hydra-docstring (type)
362-
(apply
363-
'concat
364-
(cons
365-
(format "\n %s related refactorings\n------------------------------------------------------------------------------------------------------------------------------------------------------\n" (s-capitalize (s-replace "-" " " type)))
366-
(->> cljr--all-helpers
367-
(-filter
368-
(lambda (fn-description) (-contains-p (-last-item (cdr fn-description)) type)))
369-
(-map (lambda (description) (list (car description)
370-
(nth 1 (cdr description)))))
371-
(-map (lambda (tuple) (format "_%s_: %-45s" (car tuple) (cadr tuple))))
372-
(-partition-all 3)
373-
(-map-first (lambda (line)
374-
(/= 3 (length line)))
375-
(lambda (line)
376-
(cond
377-
((= 1 (length line))
378-
(cons (car line) '("" "")))
379-
380-
((= 2 (length line))
381-
(list (car line) (cadr line) "")))))
382-
(-map (lambda (line) (apply 'format "%s%s%s\n" line)))))))
383-
384-
(defun hydra-heads (type)
385-
(->> cljr--all-helpers
386-
(-filter
387-
(lambda (fn-description) (-contains-p (-last-item (cdr fn-description)) type)))
388-
(-map (lambda (description) (list (format "%s" (car description))
389-
(cadr description))))))
390-
391361
(defhydra hydra-cljr-ns-menu (:color pink :hint nil)
392362
"
393363
Ns related refactorings

0 commit comments

Comments
 (0)