[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#38518] [PATCH 4/7] serialization: Remove unused procedure.
From: |
Ludovic Courtès |
Subject: |
[bug#38518] [PATCH 4/7] serialization: Remove unused procedure. |
Date: |
Sun, 8 Dec 2019 12:26:34 +0100 |
* guix/serialization.scm (write-contents): Remove.
---
guix/serialization.scm | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/guix/serialization.scm b/guix/serialization.scm
index cf263d321e..f793feb53d 100644
--- a/guix/serialization.scm
+++ b/guix/serialization.scm
@@ -199,24 +199,6 @@ substitute invalid byte sequences with question marks.
This is a
(put-bytevector out buf 0 read)
(loop (- left read))))))))
-(define (write-contents file p size)
- "Write SIZE bytes from FILE to output port P."
- (define (call-with-binary-input-file file proc)
- ;; Open FILE as a binary file. This avoids scan-for-encoding, and thus
- ;; avoids any initial buffering. Disable file name canonicalization to
- ;; avoid stat'ing like crazy.
- (with-fluids ((%file-port-name-canonicalization #f))
- (let ((port (open-file file "rb")))
- (dynamic-wind
- (const #t)
- (cut proc port)
- (lambda ()
- (close-port port))))))
-
- (call-with-binary-input-file file
- (lambda (input)
- (write-contents-from-port input p size))))
-
(define (write-contents-from-port input output size)
"Write SIZE bytes from port INPUT to port OUTPUT."
(write-string "contents" output)
--
2.24.0
- [bug#38518] [PATCH 0/7] 'guix challenge' can diff archives directly, Ludovic Courtès, 2019/12/07
- [bug#38518] [PATCH 0/7] 'guix challenge' can diff archives directly, zimoun, 2019/12/08
- [bug#38518] [PATCH 1/7] serialization: Add 'fold-archive'., Ludovic Courtès, 2019/12/08
- [bug#38518] [PATCH 2/7] guix archive: Add '--list'., Ludovic Courtès, 2019/12/08
- [bug#38518] [PATCH 3/7] challenge: Report the best narinfo URI., Ludovic Courtès, 2019/12/08
- [bug#38518] [PATCH 4/7] serialization: Remove unused procedure.,
Ludovic Courtès <=
- [bug#38518] [PATCH 5/7] progress: Add 'progress-report-port'., Ludovic Courtès, 2019/12/08
- [bug#38518] [PATCH 7/7] challenge: Support "--diff=diffoscope"., Ludovic Courtès, 2019/12/08
- [bug#38518] [PATCH 6/7] challenge: Add "--diff"., Ludovic Courtès, 2019/12/08
- bug#38518: [PATCH 0/7] 'guix challenge' can diff archives directly, Ludovic Courtès, 2019/12/12