]> git.donarmstrong.com Git - lilypond.git/commitdiff
Remove duplicate stencil functions
authorCarl Sorensen <c_sorensen@byu.edu>
Sun, 11 Jan 2009 00:38:59 +0000 (17:38 -0700)
committerCarl Sorensen <c_sorensen@byu.edu>
Sun, 11 Jan 2009 00:38:59 +0000 (17:38 -0700)
Functions translate-stencil and round-filled-box-stencil
were added to scm/stencil.scm as part of the fret diagrams
update.  These stencils duplicate ly:stencil-translate and
ly:round-filled-box, and are therefore removed by this commit.

scm/fret-diagrams.scm
scm/stencil.scm

index fab6868fd3d4f39712a703d6be8e4b328535c5ae..7592ef37ef044d5b44aa52abcdd19edb5f6146fa 100644 (file)
@@ -428,7 +428,7 @@ Line thickness is given by @var{th}, fret & string spacing by
                            1 1 1))
                        (make-circle-stencil
                          scale-dot-radius scale-dot-thick #t)))
-         (positioned-dot (translate-stencil dot-stencil dot-coordinates))
+         (positioned-dot (ly:stencil-translate dot-stencil dot-coordinates))
          (labeled-dot-stencil 
            (cond 
              ((or (eq? finger '())(eq? finger-code 'none))
@@ -438,7 +438,7 @@ Line thickness is given by @var{th}, fret & string spacing by
                      (centered-stencil
                        (sans-serif-stencil
                          layout props dot-label-font-mag finger))))
-              (translate-stencil
+              (ly:stencil-translate
                 (ly:stencil-add
                   dot-stencil
                   (if (eq? dot-color 'white)
@@ -465,7 +465,7 @@ Line thickness is given by @var{th}, fret & string spacing by
                          orientation)))
                 (ly:stencil-add
                   positioned-dot
-                  (translate-stencil label-stencil label-translation))))
+                  (ly:stencil-translate label-stencil label-translation))))
              (else ;unknown finger-code
                positioned-dot))))
     (if (null? restlist)
@@ -501,7 +501,7 @@ Line thickness is given by @var{th}, fret & string spacing by
          (glyph-stencil-coordinates 
            (stencil-coordinates 0 glyph-string-coordinate orientation))
          (positioned-glyph
-           (translate-stencil glyph-stencil glyph-stencil-coordinates)))
+           (ly:stencil-translate glyph-stencil glyph-stencil-coordinates)))
     (if (null? restlist)
         positioned-glyph
         (ly:stencil-add
@@ -574,7 +574,7 @@ Line thickness is given by @var{th}, fret & string spacing by
          (label-half-width 
            (stencil-fretboard-offset label-stencil 'string orientation))
          (label-outside-diagram (+ label-space label-half-width)))
-    (translate-stencil
+    (ly:stencil-translate
       label-stencil
       (stencil-coordinates 
         (1+ (* size label-vertical-offset))
@@ -728,7 +728,7 @@ Line thickness is given by @var{th}, fret & string spacing by
       (set! fret-diagram-stencil
         (ly:stencil-add
           fret-diagram-stencil
-          (translate-stencil
+          (ly:stencil-translate
             xo-stencil
             (stencil-coordinates
              (- diagram-fret-top
index 8513c6389a3bd95499315bf6ea54e743719e1485..105f6f5893555deade31e7f9b5e5e97aed13d8ff 100644 (file)
@@ -4,13 +4,6 @@
 ;;;; 
 ;;;; (c) 2003--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
-(define-public (translate-stencil stencil coordinate-pair)
-  "Translate @code{stencil} by the distances specified in
-@code{coordinate-pair}."
-  (ly:stencil-translate-axis
-    (ly:stencil-translate-axis stencil (cdr coordinate-pair) Y)
-    (car coordinate-pair) X))
-
 (define-public (stack-stencils axis dir padding stils)
   "Stack stencils STILS in direction AXIS, DIR, using PADDING."
   (cond
       (interval-widen xext (/ width 2))
       (interval-widen yext (/ width 2)))))
 
-(define-public (make-round-filled-box-stencil xext yext blot-diameter)
-  "Make a filled rounded box."
-  
-  (ly:make-stencil
-      (list 'round-filled-box (- (car xext)) (cdr xext)
-                       (- (car yext)) (cdr yext) blot-diameter)
-      xext yext))
 
 (define-public (make-filled-box-stencil xext yext)
   "Make a filled box."