delete what nothing calls
walk-generic-toplevel and non-empty-list? had no caller left, a type variable's id was never read, and every expression's type was recorded in a table nothing looked up.
This commit is contained in:
@@ -61,9 +61,8 @@
|
||||
;;; unused until a `fn' grows type parameters, and five lines now
|
||||
;;; against an IR change later.
|
||||
(define-record-type <tvar>
|
||||
(%make-tvar id ref classes rigid?)
|
||||
(%make-tvar ref classes rigid?)
|
||||
tvar?
|
||||
(id tvar-id)
|
||||
(ref tvar-ref tvar-ref-set!)
|
||||
(classes tvar-classes tvar-classes-set!)
|
||||
(rigid? tvar-rigid?))
|
||||
@@ -131,11 +130,8 @@
|
||||
(%make-unknown)
|
||||
unknown-type?)
|
||||
|
||||
(define tvar-counter 0)
|
||||
|
||||
(define (fresh-tvar . classes)
|
||||
(set! tvar-counter (+ tvar-counter 1))
|
||||
(%make-tvar tvar-counter #f (if (null? classes) (list) (car classes)) #f))
|
||||
(%make-tvar #f (if (null? classes) (list) (car classes)) #f))
|
||||
|
||||
;;; Follow a bound variable to what it stands for, compressing the path
|
||||
;;; on the way out. Every procedure that looks at a type's shape starts
|
||||
|
||||
Reference in New Issue
Block a user