Removed unused code

This commit is contained in:
Justin Ethier 2015-08-21 01:45:47 -04:00
parent 026eaa6130
commit c46e311945

View file

@ -111,7 +111,6 @@
cell-get->cell cell-get->cell
expand expand
let=>lambda let=>lambda
letrec=>lets+sets
isolate-globals isolate-globals
has-global? has-global?
global-vars global-vars
@ -915,22 +914,6 @@
(else (else
(error "unknown exp: " exp)))) (error "unknown exp: " exp))))
; TODO: eventually, merge below functions with above *defined-macros* defs and
;; replace both with a lib of (define-syntax) constructs
; letrec=>lets+sets : letrec-exp -> exp
(define (letrec=>lets+sets exp)
(if (letrec? exp)
(let* ((bindings (letrec->bindings exp))
(namings (map (lambda (b) (list (car b) #f)) bindings))
(names (letrec->bound-vars exp))
(sets (map (lambda (binding)
(cons 'set! binding))
bindings))
(args (letrec->args exp)))
`(let ,namings
(begin ,@(append sets (letrec->exp exp)))))))
;; Top-level analysis ;; Top-level analysis
; Separate top-level defines (globals) from other expressions ; Separate top-level defines (globals) from other expressions