aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-05-22 23:32:49 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-05-23 12:59:19 +0200
commit3de1a94e0d96efc193aea68fae69ac4a0cdd2008 (patch)
tree67de47f66dbe3bd37b6178b4f288ac1a17c45843 /module/vcomponent
parentWhitespace cleanup. (diff)
downloadcalp-3de1a94e0d96efc193aea68fae69ac4a0cdd2008.tar.gz
calp-3de1a94e0d96efc193aea68fae69ac4a0cdd2008.tar.xz
Remove print-vcomponent.
Diffstat (limited to 'module/vcomponent')
-rw-r--r--module/vcomponent/output.scm22
1 files changed, 1 insertions, 21 deletions
diff --git a/module/vcomponent/output.scm b/module/vcomponent/output.scm
index e95574ac..47c740e2 100644
--- a/module/vcomponent/output.scm
+++ b/module/vcomponent/output.scm
@@ -7,27 +7,7 @@
#:use-module (datetime util)
#:use-module (srfi srfi-26)
#:use-module (ice-9 format)
- #:export (print-vcomponent
- serialize-vcomponent))
-
-;;; TODO this is broken,2020-03-22
-(define* (print-vcomponent comp #:optional (port #t) #:key (descend? #t) (depth 0))
- (let ((kvs (map (lambda (key) (cons key (attr* comp key)))
- (attributes comp))))
- (format port "~a <~a> :: ~:a~%"
- (make-string depth #\:)
- (type comp) comp)
- (for kv in kvs
- (let* (((key . at) kv))
- (format port "~a ~15@a~{;~a=~{~a~^,~}~}: ~a~%"
- (make-string depth #\:)
- key
- (concatenate (hash-map->list list (cdr at)))
- (value at))))
- (if descend?
- (for-each (lambda (e) (print-vcomponent e port #:descend? #t #:depth (1+ depth)))
- (children comp)))))
-
+ #:export (serialize-vcomponent))
;;; TODO