Skip to content

Commit

Permalink
Replace too specific function with composition
Browse files Browse the repository at this point in the history
  • Loading branch information
rexim committed Jan 22, 2016
1 parent 9d839d0 commit cdae42d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pacmacs-render.el
Expand Up @@ -68,9 +68,6 @@
(pacmacs--render-anim anim))
(pacmacs--render-empty-cell)))

(defun pacmacs--render-first-object-in-list (anim-objects)
(pacmacs--render-object (car anim-objects)))

(defun pacmacs--render-track-cell (track-cell)
(insert "\t")
(if track-cell
Expand All @@ -93,7 +90,7 @@

(defun pacmacs--render-object-board (object-board)
(pacmacs--render-board object-board
#'pacmacs--render-first-object-in-list)
(-compose #'pacmacs--render-object #'car))
(insert "\n"))

(provide 'pacmacs-render)
Expand Down

0 comments on commit cdae42d

Please sign in to comment.