branch: elpa/pacmacs
commit e0a315600bbdead19d0b34d14ec4ed25d49a770e
Author: rexim <[email protected]>
Commit: rexim <[email protected]>
Get rid of redundant code (#138)
Do not try to convert palette from vector to list in the
generate-xmp-palette function. It's already a list everywhere. :)
---
pacmacs-image.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pacmacs-image.el b/pacmacs-image.el
index 38c7a4f8be..90b92757f4 100644
--- a/pacmacs-image.el
+++ b/pacmacs-image.el
@@ -78,7 +78,7 @@
(defun pacmacs--generate-xpm-palette (palette)
(let* ((n (length palette))
(palette-indices (number-sequence 0 (1- n))))
- (->> (-map #'identity palette)
+ (->> palette
(-zip-with #'cons palette-indices)
(-map (-lambda ((index . color))
(format "\"%c c %s\",\n" (+ index ?a) color)))