]> git.lyx.org Git - lyx.git/blobdiff - src/dimension.C
* output_plaintext.C: cosmetics in comment: line length cannot be < 0
[lyx.git] / src / dimension.C
index 847fdd71f5b24c316bd649fd7910633854f08de1..c9a51d37e4f3944ecc52e7a08720382d0fc09454 100644 (file)
@@ -11,8 +11,6 @@
 #include <config.h>
 
 #include "dimension.h"
-#include "frontends/FontMetrics.h"
-
 
 namespace lyx {
 
@@ -26,22 +24,4 @@ void Dimension::operator+=(Dimension const & dim)
        wid += dim.wid;
 }
 
-
-void Dimension::clear(LyXFont const & font)
-{
-       frontend::FontMetrics const & fm = theFontMetrics(font);
-       asc = fm.maxAscent();
-       des = fm.maxDescent();
-       wid = 0;
-}
-
-
-void Dimension::set(LyXFont const & font, char_type c)
-{
-       frontend::FontMetrics const & fm = theFontMetrics(font);
-       des = fm.descent(c);
-       asc = fm.ascent(c);
-       wid = fm.width(c);
-}
-
 } // namespace lyx