Skip to content

Commit 3fac7f9

Browse files
committed
remove methods that specialize on environment
1 parent a27d9ff commit 3fac7f9

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/typechecker/context-reduction.lisp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Returns (PREDS FOUNDP)"
104104
(simp-loop nil preds)))
105105

106106
(defun reduce-context (env preds subs)
107-
(let ((env (apply-substitution subs env))
107+
(let ((env (env-apply-substitution subs env))
108108
(preds (apply-substitution subs preds)))
109109
(simplify-context
110110
(lambda (preds pred)

src/typechecker/environment.lisp

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
(#:parser #:coalton-impl/parser)
2828
(#:map #:coalton-impl/algorithm/hamt))
2929
(:export
30+
#:env-apply-substitution
3031
#:*update-hook* ; VARIABLE
3132
#:explicit-repr ; TYPE
3233
#:type-entry ; STRUCT
@@ -786,7 +787,7 @@
786787
;;; Methods
787788
;;;
788789

789-
(defmethod apply-substitution (subst-list (env environment))
790+
(defun env-apply-substitution (subst-list env)
790791
(declare (type substitution-list subst-list)
791792
(type environment env)
792793
(values environment &optional))
@@ -796,9 +797,6 @@
796797
(environment-value-environment env)
797798
subst-list)))
798799

799-
(defmethod type-variables ((env environment))
800-
(value-type-variables (environment-value-environment env)))
801-
802800
;;;
803801
;;; Functions
804802
;;;

0 commit comments

Comments
 (0)