mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-25 05:51:55 -08:00
cmp: remove unused environment object type "cleanup"
This commit is contained in:
parent
a85b585108
commit
f1080c716c
1 changed files with 0 additions and 24 deletions
|
|
@ -31,26 +31,6 @@ that are susceptible to be changed by PROCLAIM."
|
|||
(defmacro cmp-env-functions (&optional (env '*cmp-env*))
|
||||
`(cdr ,env))
|
||||
|
||||
(defun cmp-env-cleanups (env)
|
||||
(loop with specials = '()
|
||||
with end = (cmp-env-variables env)
|
||||
with cleanup-forms = '()
|
||||
with aux
|
||||
for records-list on (cmp-env-variables *cmp-env*)
|
||||
until (eq records-list end)
|
||||
do (let ((record (first records-list)))
|
||||
(cond ((atom record))
|
||||
((and (symbolp (first record))
|
||||
(eq (second record) :special))
|
||||
(push (fourth record) specials))
|
||||
((eq (first record) :cleanup)
|
||||
(push (second record) cleanup-forms))))
|
||||
finally (progn
|
||||
(unless (eq records-list end)
|
||||
(error "Inconsistency in environment."))
|
||||
(return (values specials
|
||||
(apply #'nconc (mapcar #'copy-list cleanup-forms)))))))
|
||||
|
||||
(defun cmp-env-register-var (var &optional (env *cmp-env*) (boundp t))
|
||||
(push (list (var-name var)
|
||||
(if (member (var-kind var) '(special global))
|
||||
|
|
@ -120,10 +100,6 @@ that are susceptible to be changed by PROCLAIM."
|
|||
(cmp-env-variables env))
|
||||
env)
|
||||
|
||||
(defun cmp-env-register-cleanup (form &optional (env *cmp-env*))
|
||||
(push (list :cleanup (copy-list form)) (cmp-env-variables env))
|
||||
env)
|
||||
|
||||
(defun cmp-env-search-function (name &optional (env *cmp-env*))
|
||||
(let ((cfb nil)
|
||||
(unw nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue