summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasamichi Hosoda <trueroad@trueroad.jp>2015-05-24 14:28:43 +0900
committerMasamichi Hosoda <trueroad@trueroad.jp>2015-05-31 22:27:27 +0900
commit42494c126671d9b70f7274ef502c9dc33e72177f (patch)
tree048401a76abb6395ba466109dd78fc70ed06f08a
parent518fd5740c1c9a03c49be2450cf81a945cd6a7e1 (diff)
Issue 4417 / 1: Delete duplicate procedures in ps-to-png.scm
PLATFORM: lily.scm search-executable: backend-library.scm search-gs: backend-library.scm gulp-port: unused
-rw-r--r--scm/ps-to-png.scm23
1 files changed, 0 insertions, 23 deletions
diff --git a/scm/ps-to-png.scm b/scm/ps-to-png.scm
index 3b6b6c2452..8a476f36c5 100644
--- a/scm/ps-to-png.scm
+++ b/scm/ps-to-png.scm
@@ -31,32 +31,9 @@
(define-public _ gettext)
-(define PLATFORM
- (string->symbol
- (string-downcase
- (car (string-tokenize (utsname:sysname (uname)) char-set:letter)))))
-
(define (re-sub re sub string)
(regexp-substitute/global #f re string 'pre sub 'post))
-(define (search-executable names)
- (define (helper path lst)
- (if (null? (cdr lst))
- (car lst)
- (if (search-path path (car lst)) (car lst)
- (helper path (cdr lst)))))
-
- (let ((path (parse-path (getenv "PATH"))))
- (helper path names)))
-
-(define (search-gs)
- (search-executable '("gs-nox" "gs-8.15" "gs")))
-
-(define (gulp-port port max-length)
- (let ((str (make-string max-length)))
- (read-string!/partial str port 0 max-length)
- str))
-
(define-public (gulp-file file-name . max-size)
(ly:gulp-file file-name (if (pair? max-size) (car max-size))))