]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/font-metric-scheme.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / font-metric-scheme.cc
index c39d79494a55f02ef15e9e5501fea7639aa80794..bcb034174e6561ee1e7e840fe948bb303dffb3c6 100644 (file)
@@ -6,7 +6,6 @@
   (c) 2005--2006 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
-#include "warn.hh"
 #include "stencil.hh"
 #include "font-metric.hh"
 #include "modified-font-metric.hh"
@@ -98,10 +97,6 @@ LY_DEFINE (ly_text_dimension, "ly:text-dimension",
                   ly_interval2scm (stc.extent (Y_AXIS)));
 }
 
-
-/*
-  TODO: when are non string retvals allowed?
- */
 LY_DEFINE (ly_font_file_name, "ly:font-file-name",
           1, 0, 0,
           (SCM font),
@@ -110,9 +105,7 @@ LY_DEFINE (ly_font_file_name, "ly:font-file-name",
 {
   Font_metric *fm = unsmob_metrics (font);
   SCM_ASSERT_TYPE (fm, font, SCM_ARG1, __FUNCTION__, "font-metric");
-  SCM name = fm->font_file_name ();
-
-  return name;
+  return fm->font_file_name ();
 }
 
 LY_DEFINE (ly_font_name, "ly:font-name",