[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
130/197: installer: Delete unused procedure "justify".
From: |
Danny Milosavljevic |
Subject: |
130/197: installer: Delete unused procedure "justify". |
Date: |
Mon, 3 Jul 2017 20:37:13 -0400 (EDT) |
dannym pushed a commit to branch wip-installer-2
in repository guix.
commit 1554d6875e1c106ccda9edcae6b6f08b73f07011
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."
- 96/197: installer: Changed N_ to M_ since N_ is used for another purpose in guix/ui.scm, (continued)
- 96/197: installer: Changed N_ to M_ since N_ is used for another purpose in guix/ui.scm, Danny Milosavljevic, 2017/07/03
- 142/197: gurses: xchar->char: New procedure., Danny Milosavljevic, 2017/07/03
- 85/197: installer: Use "lspci -mm" instead of "lspci -m"., Danny Milosavljevic, 2017/07/03
- 88/197: installer: Use a cleaner method of detecting wireless capability for ethernet interfaces., Danny Milosavljevic, 2017/07/03
- 93/197: installer: Add a dedicated make to format filesystems., Danny Milosavljevic, 2017/07/03
- 100/197: installer: Do not perform tasks more than once., Danny Milosavljevic, 2017/07/03
- 106/197: installer: Properly handle swap partitions when generating the configuration., Danny Milosavljevic, 2017/07/03
- 114/197: installer: Check that swap spaces have not been assigned mount points, Danny Milosavljevic, 2017/07/03
- 112/197: gurses: form: Use match instead of car, cdr etc., Danny Milosavljevic, 2017/07/03
- 125/197: installer: Do not assume the root file system is of type "ext4"., Danny Milosavljevic, 2017/07/03
- 130/197: installer: Delete unused procedure "justify".,
Danny Milosavljevic <=
- 134/197: installer: Tolerate an undefined system role in config generation., Danny Milosavljevic, 2017/07/03
- 137/197: installer: Prepare for new wireless network features., Danny Milosavljevic, 2017/07/03
- 140/197: installer: Fix the key map option., Danny Milosavljevic, 2017/07/03
- 132/197: installer: Add new procedure to check file system specifications., Danny Milosavljevic, 2017/07/03
- 145/197: gurses: Avoid yet another use of car and cdr., Danny Milosavljevic, 2017/07/03
- 129/197: installer: Emphasise that writing filesystems destroys existing data., Danny Milosavljevic, 2017/07/03
- 150/197: gurses: Reimplement pad-complex-string., Danny Milosavljevic, 2017/07/03
- 159/197: installer: Fix i18n in dialogs., Danny Milosavljevic, 2017/07/03
- 154/197: installer: Main page: Redisplay translatable strings upon refresh., Danny Milosavljevic, 2017/07/03
- 157/197: installer: Replace 'file-browser' with 'key-map'., Danny Milosavljevic, 2017/07/03