aboutsummaryrefslogtreecommitdiff
path: root/module/calp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-12 03:11:52 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-06-12 03:11:52 +0200
commit12dc92b8fb1eb2fe81d95d315afde9e84e1174b1 (patch)
tree8631711501e7c52d600fb5f6c9f9127d8e94a999 /module/calp
parentStop using with-label. (diff)
downloadcalp-12dc92b8fb1eb2fe81d95d315afde9e84e1174b1.tar.gz
calp-12dc92b8fb1eb2fe81d95d315afde9e84e1174b1.tar.xz
Remove with-label.
Diffstat (limited to 'module/calp')
-rw-r--r--module/calp/html/components.scm20
1 files changed, 0 insertions, 20 deletions
diff --git a/module/calp/html/components.scm b/module/calp/html/components.scm
index 6ff59502..a36dbef9 100644
--- a/module/calp/html/components.scm
+++ b/module/calp/html/components.scm
@@ -110,26 +110,6 @@
,@inner-body)]))
-(define-public (with-label lbl . forms)
-
- (define id (gensym "label"))
-
- (cons `(label (@ (for ,id)) ,lbl)
- (let recurse ((forms forms))
- (map (lambda (form)
- (cond [(not (list? form)) form]
- [(null? form) '()]
- [(eq? 'input (car form))
- ((set-attribute `((id ,id))) form)]
- [(list? (car form))
- (cons (recurse (car form))
- (recurse (cdr form)))]
- [else
- (cons (car form)
- (recurse (cdr form)))]))
- forms))))
-
-
(define-public (include-css path . extra-attributes)
`(link (@ (type "text/css")
(rel "stylesheet")