From b85aab287022ac402f2d5ac588709282b6efa449 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Mon, 4 May 2009 21:15:44 +0200 Subject: Dead code elimination. --- scheme/plt/geiser/completions.ss | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'scheme') 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))) stringlist 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 -- cgit v1.2.3