diff options
Diffstat (limited to 'module/hnh/util.scm')
-rw-r--r-- | module/hnh/util.scm | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/module/hnh/util.scm b/module/hnh/util.scm index 7fe44462..7fa3419d 100644 --- a/module/hnh/util.scm +++ b/module/hnh/util.scm @@ -556,26 +556,6 @@ -;; TODO shouldn't this use `file-name-separator-string'? -(define-public (path-append . strings) - (fold (lambda (s done) - (string-append - done - (if (string-null? s) - (string-append s "/") - (if (char=? #\/ (string-last done)) - (if (char=? #\/ (string-first s)) - (string-drop s 1) s) - (if (char=? #\/ (string-first s)) - s (string-append "/" s)))))) - (let ((s (car strings))) - (if (string-null? s) - "/" s)) - (cdr strings))) - - - - (define-syntax let-env (syntax-rules () [(_ ((name value) ...) |