Просмотр исходного кода

Use make-keyword from Alexandria.

Brit Butler лет назад: 13
Родитель
Сommit
2afde61ad4
2 измененных файлов с 2 добавлено и 5 удалено
  1. 0 4
      src/coleslaw.lisp
  2. 2 1
      src/packages.lisp

+ 0 - 4
src/coleslaw.lisp

@@ -5,10 +5,6 @@
5 5
 If ARGS is provided, use (apply 'format nil PATH ARGS) as the value of PATH."
6 6
   (merge-pathnames (apply 'format nil path args) coleslaw-conf:*basedir*))
7 7
 
8
-(defun make-keyword (string)
9
-  "Return a keyword matching STRING."
10
-  (intern (string-upcase string) :keyword))
11
-
12 8
 (defun to-pathname (file parent)
13 9
   "Convert an iolib file-path back to a pathname."
14 10
   (merge-pathnames (file-path-namestring file) parent))

+ 2 - 1
src/packages.lisp

@@ -6,7 +6,8 @@
6 6
                           #:read-symlink
7 7
                           #:run-program)
8 8
   (:import-from :iolib.pathnames #:file-path-namestring)
9
-  (:import-from :alexandria #:hash-table-values)
9
+  (:import-from :alexandria #:hash-table-values
10
+                            #:make-keyword)
10 11
   (:export #:main
11 12
            #:add-injection
12 13
            #:render-content