summaryrefslogtreecommitdiffstats
path: root/srfi/default-impl.scm
diff options
context:
space:
mode:
authorGravatar Arvydas Silanskas 2021-11-11 20:09:12 +0200
committerGravatar Arvydas Silanskas 2021-11-11 20:09:12 +0200
commitf1b1e37b57ff1ecf1e7dd18dbb9204c402edf3c2 (patch)
treed9c2e182d0bdbe1790afdf693f15b4adf23720a6 /srfi/default-impl.scm
parentMerge remote-tracking branch 'arvyy/master' (diff)
remove min-key, max-key, plist; add dependencies list to html
Diffstat (limited to 'srfi/default-impl.scm')
-rw-r--r--srfi/default-impl.scm23
1 files changed, 0 insertions, 23 deletions
diff --git a/srfi/default-impl.scm b/srfi/default-impl.scm
index d5bfdec..72c1f7f 100644
--- a/srfi/default-impl.scm
+++ b/srfi/default-impl.scm
@@ -74,27 +74,6 @@
(lambda () default)
(lambda (x) x)))
- (define (default-dict-find-key dtd dict cmp-proc)
- (define cmp (dict-comparator dtd dict))
- (define keys (dict-keys dtd dict))
- (when (not cmp)
- (raise (dictionary-error "dictionary doesn't have comparator")))
- (when (null? keys)
- (error "Cannot find min/max key in empty dictionary"))
- (let loop ((best (car keys))
- (keys (cdr keys)))
- (cond
- ((null? keys) best)
- ((cmp-proc cmp (car keys) best)
- (loop (car keys) (cdr keys)))
- (else (loop best (cdr keys))))))
-
- (define (default-dict-min-key dtd dict)
- (default-dict-find-key dtd dict <?))
-
- (define (default-dict-max-key dtd dict)
- (default-dict-find-key dtd dict >?))
-
;; private
(define (default-dict-set* dtd dictionary use-old? objs)
(let loop ((objs objs)
@@ -387,8 +366,6 @@
dict-mutable?-id default-dict-mutable?
dict-ref-id default-dict-ref
dict-ref/default-id default-dict-ref/default
- dict-min-key-id default-dict-min-key
- dict-max-key-id default-dict-max-key
dict-set-id default-dict-set
dict-adjoin-id default-dict-adjoin
dict-delete-id default-dict-delete