diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-10-27 16:01:25 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-11-06 00:46:25 +0100 |
commit | f14c80e58da3dcb2fc1249256ff2324649dc9af5 (patch) | |
tree | d3024f7cc03e894e884c62d624140e080405f106 /module | |
parent | Fix some incorrect strings in documentation. (diff) | |
download | calp-f14c80e58da3dcb2fc1249256ff2324649dc9af5.tar.gz calp-f14c80e58da3dcb2fc1249256ff2324649dc9af5.tar.xz |
Remove unused 'color-if'.
Diffstat (limited to 'module')
-rw-r--r-- | module/vulgar/color.scm | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/module/vulgar/color.scm b/module/vulgar/color.scm index 91bd977f..bf6959be 100644 --- a/module/vulgar/color.scm +++ b/module/vulgar/color.scm @@ -1,15 +1,8 @@ (define-module (vulgar color) - :export (color-if color-escape)) + :export (color-escape)) (define-public STR-RESET "\x1b[m") -(define-syntax-rule (color-if pred color body ...) - (let ((pred-value pred)) - (format #f "~a~a~a" - (if pred-value color "") - (begin body ...) - (if pred-value STR-RESET "")))) - (define (color-escape n) (cond ((not n) "") ((char=? #\# (string-ref n 0)) |