summaryrefslogtreecommitdiff
path: root/scheme/plt/geiser
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2009-05-04 21:15:44 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2009-05-04 21:15:44 +0200
commitb85aab287022ac402f2d5ac588709282b6efa449 (patch)
tree88b7aecd6929af52c5e4039a64b19bd7c80ec05f /scheme/plt/geiser
parent1de0625a0a4ec28744e6d7fec45e7713ee505cfa (diff)
downloadgeiser-chez-b85aab287022ac402f2d5ac588709282b6efa449.tar.gz
geiser-chez-b85aab287022ac402f2d5ac588709282b6efa449.tar.bz2
Dead code elimination.
Diffstat (limited to 'scheme/plt/geiser')
-rw-r--r--scheme/plt/geiser/completions.ss10
1 files changed, 3 insertions, 7 deletions
diff --git a/scheme/plt/geiser/completions.ss b/scheme/plt/geiser/completions.ss
index 3cd62fd..013cdb1 100644
--- a/scheme/plt/geiser/completions.ss
+++ b/scheme/plt/geiser/completions.ss
@@ -28,7 +28,7 @@
(provide completions)
-(require srfi/13)
+(require srfi/13 geiser/utils)
(define (completions prefix . context)
(let ((context (and (not (null? context)) (car context)))
@@ -37,12 +37,6 @@
(sort (filter prefix? (map symbol->string (namespace-mapped-symbols)))
string<?))))
-(define (pair->list pair)
- (let loop ((d pair) (s '()))
- (cond ((null? d) (reverse s))
- ((symbol? d) (reverse (cons d s)))
- (else (loop (cdr d) (cons (car d) s))))))
-
(define (local-bindings form)
(define (body f) (if (> (length f) 2) (cddr f) '()))
(let loop ((form form) (bindings '()))
@@ -59,4 +53,6 @@
(loop (cons 'let (body form)) (cons (cadr form) bindings)))
(else (loop (cdr form) bindings)))))
+
+
;;; completions.ss ends here