[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/21: installer: Delete unused procedure "justify".
From: |
John Darrington |
Subject: |
01/21: installer: Delete unused procedure "justify". |
Date: |
Sun, 29 Jan 2017 07:35:01 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit 07947fa43c4bfe9f4fa1d524990a136536d542db
Author: John Darrington <address@hidden>
Date: Sun Jan 22 16:06:01 2017 +0100
installer: Delete unused procedure "justify".
* gnu/system/installer/utils.scm (justify): Delete procedure.
---
gnu/system/installer/utils.scm | 28 +---------------------------
1 file changed, 1 insertion(+), 27 deletions(-)
diff --git a/gnu/system/installer/utils.scm b/gnu/system/installer/utils.scm
index 47b8cd7..96f49ac 100644
--- a/gnu/system/installer/utils.scm
+++ b/gnu/system/installer/utils.scm
@@ -17,7 +17,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu system installer utils)
- #:export (justify
+ #:export (
justify*
addstr*
slurp
@@ -106,32 +106,6 @@
(close-port (car pipep))))
(cdr (waitpid pid))))
-(define (justify text width)
- "A naive function to split a string into lines no more than width characters
long."
- (define (justify' l n acc)
- (if (null? l)
- acc
- (let* ((word (car l))
- (len (string-length word)))
-
- (define (linefull? n w)
- (> (+ len n) w))
-
- (justify'
- (if (linefull? n width)
- l
- (cdr l))
- (if (linefull? n width)
- 0
- (+ n (1+ len)))
-
- (if (linefull? n width)
- (string-append acc
- (make-string (- width len) #\space))
- (string-append acc word " "))))))
-
- (justify' (string-split text char-set:blank) 0 ""))
-
(define (justify* text width)
"A naive function to split a string into lines no more than width characters
long.
This version assumes some external entity puts in the carriage returns."
- branch wip-installer updated (61c0ffb -> 9ff399e), John Darrington, 2017/01/29
- 02/21: gurses: Use inverse instead of underline for field value area., John Darrington, 2017/01/29
- 07/21: installer: No passphrase is needed for clear networks., John Darrington, 2017/01/29
- 04/21: installer: Change livery., John Darrington, 2017/01/29
- 08/21: installer: Prepare for new wireless network features., John Darrington, 2017/01/29
- 05/21: installer: Tolerate an undefined system role in config generation., John Darrington, 2017/01/29
- 09/21: installer: Clear the mount point field for swap file systems., John Darrington, 2017/01/29
- 03/21: installer: Add new procedure to check file system specifications., John Darrington, 2017/01/29
- 01/21: installer: Delete unused procedure "justify".,
John Darrington <=
- 20/21: gurses: Add new procedure "word-endings"., John Darrington, 2017/01/29
- 14/21: gurses: Add predicate to test if a complex char is blank., John Darrington, 2017/01/29
- 12/21: gurses: Avoid one usage of car and cdr., John Darrington, 2017/01/29
- 15/21: gurses: Avoid one more use of car and cdr., John Darrington, 2017/01/29
- 13/21: gurses: xchar->char: New procedure., John Darrington, 2017/01/29
- 19/21: installer: Support WEP encrypted wireless., John Darrington, 2017/01/29
- 16/21: gurses: Avoid yet another use of car and cdr., John Darrington, 2017/01/29
- 11/21: installer: Fix the key map option., John Darrington, 2017/01/29
- 18/21: gurses: In paragraph-format avoid use of car and cdr., John Darrington, 2017/01/29
- 06/21: installer: Use a "hard" method of rebooting. Do not rely on shepherd., John Darrington, 2017/01/29