mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 12:20:20 +02:00
Remove unused top-level variables.
* module/ice-9/runq.scm (fork-strips): Remove. * module/language/assembly.scm (*block-alignment*): Remove. * module/language/assembly/disassemble.scm (disassemble-objects, simplify): Remove. * module/srfi/srfi-18.scm (mutex-owners): Remove. * module/srfi/srfi-19.scm (leap-year?): Remove. * module/system/base/compile.scm (dsu-sort): Remove. * module/texinfo.scm (ascii->char): Remove. * module/texinfo/html.scm (ignored?): Remove. * module/texinfo/indexing.scm (def-name): Remove. * module/texinfo/plain-text.scm (ignore): Remove.
This commit is contained in:
parent
e6251e7bd9
commit
6734191c68
10 changed files with 8 additions and 46 deletions
|
@ -1,6 +1,6 @@
|
|||
;;; Guile Virtual Machine Assembly
|
||||
|
||||
;; Copyright (C) 2001, 2009 Free Software Foundation, Inc.
|
||||
;; Copyright (C) 2001, 2009, 2010 Free Software Foundation, Inc.
|
||||
|
||||
;;;; This library is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -58,8 +58,6 @@
|
|||
|
||||
(define *program-alignment* 8)
|
||||
|
||||
(define *block-alignment* 8)
|
||||
|
||||
(define (addr+ addr code)
|
||||
(fold (lambda (x len) (+ (byte-length x) len))
|
||||
addr
|
||||
|
|
|
@ -88,13 +88,6 @@
|
|||
(else
|
||||
(error "bad load-program form" asm))))
|
||||
|
||||
(define (disassemble-objects objs)
|
||||
(display "Objects:\n\n")
|
||||
(let ((len (vector-length objs)))
|
||||
(do ((n 0 (1+ n)))
|
||||
((= n len) (newline))
|
||||
(print-info n (vector-ref objs n) #f #f))))
|
||||
|
||||
(define (disassemble-free-vars free-vars)
|
||||
(display "Free variables:\n\n")
|
||||
(let lp ((i 0))
|
||||
|
@ -164,12 +157,3 @@
|
|||
;; i am format's daddy.
|
||||
(define (print-info addr info extra src)
|
||||
(format #t "~4@S ~32S~@[;; ~1{~@?~}~]~@[~61t at ~a~]\n" addr info extra src))
|
||||
|
||||
(define (simplify x)
|
||||
(cond ((string? x)
|
||||
(cond ((string-index x #\newline) =>
|
||||
(lambda (i) (set! x (substring x 0 i)))))
|
||||
(cond ((> (string-length x) 16)
|
||||
(set! x (string-append (substring x 0 13) "..."))))))
|
||||
x)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue