Skip to content

Commit a27d9ff

Browse files
committed
drop obsolete hashtable iterator
1 parent e785535 commit a27d9ff

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/utilities.lisp

-11
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#:cst-source-range ; FUNCTION
2323
#:literal-value ; TYPE
2424
#:literal-equal ; FUNCTION
25-
#:maphash-values-new ; FUNCTION
2625
#:take ; FUNCTION
2726
#:drop ; FUNCTION
2827
#:find-package ; FUNCTION
@@ -141,16 +140,6 @@
141140
#+sbcl (declare (sb-ext:muffle-conditions sb-ext:code-deletion-note))
142141
(coalton-bug "This error was expected to be unreachable in the Coalton source code.")))
143142

144-
(defun maphash-values-new (function table)
145-
"Map across the values of a hash-table. Returns a new hash-table with unchanged keys."
146-
(declare (type function function)
147-
(type hash-table table))
148-
(let ((new (make-hash-table)))
149-
(loop :for k :being :the :hash-keys :of table
150-
:for v :being :the :hash-values :of table
151-
:do (setf (gethash k new) (funcall function v)))
152-
new))
153-
154143
(defun required (name)
155144
"A function to call as a slot initializer when it's required."
156145
(declare (type symbol name))

0 commit comments

Comments
 (0)