[Libreoffice-commits] .: canvas/source unusedcode.easy
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Jan 13 13:14:35 PST 2013
canvas/source/cairo/cairo_textlayout.cxx | 9 ---------
canvas/source/cairo/cairo_textlayout.hxx | 1 -
unusedcode.easy | 1 -
3 files changed, 11 deletions(-)
New commits:
commit 6086949c9e29339d097585137e571aa780c24257
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sun Jan 13 22:12:45 2013 +0100
Remove unused function useFont
Change-Id: Icaa3e130ebd4eb168a62a2b45cf8f7a222c0764e
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx
index c5bb947..fe55665 100644
--- a/canvas/source/cairo/cairo_textlayout.cxx
+++ b/canvas/source/cairo/cairo_textlayout.cxx
@@ -301,15 +301,6 @@ namespace cairocanvas
return maText;
}
- void TextLayout::useFont( Cairo* pCairo )
- {
- rendering::FontRequest aFontRequest = mpFont->getFontRequest();
- rendering::FontInfo aFontInfo = aFontRequest.FontDescription;
-
- cairo_select_font_face( pCairo, OUStringToOString( aFontInfo.FamilyName, RTL_TEXTENCODING_UTF8 ).getStr(), CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL );
- cairo_set_font_size( pCairo, aFontRequest.CellSize );
- }
-
/**
* TextLayout::isCairoRenderable
*
diff --git a/canvas/source/cairo/cairo_textlayout.hxx b/canvas/source/cairo/cairo_textlayout.hxx
index 42cc369..406b673 100644
--- a/canvas/source/cairo/cairo_textlayout.hxx
+++ b/canvas/source/cairo/cairo_textlayout.hxx
@@ -102,7 +102,6 @@ namespace cairocanvas
SurfaceProviderRef mpRefDevice;
sal_Int8 mnTextDirection;
- void useFont( ::cairo::Cairo* pCairo );
bool isCairoRenderable(SystemFontData aSysFontData) const;
};
diff --git a/unusedcode.easy b/unusedcode.easy
index b860adc..bb03e1e 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -30,7 +30,6 @@ apitest::XPropertySet::testAddVetoableChangeListener()
apitest::XPropertySet::testRemovePropertyChangeListener()
apitest::XPropertySet::testRemoveVetoableChangeListener()
apitest::XSpreadsheetDocument::testGetSheets()
-cairocanvas::TextLayout::useFont(_cairo*)
canvas::createSurfaceProxyManager(boost::shared_ptr<canvas::IRenderModule> const&)
comphelper::detail::ConfigurationWrapper::getGroupReadWrite(boost::shared_ptr<comphelper::ConfigurationChanges> const&, rtl::OUString const&) const
comphelper::detail::ConfigurationWrapper::getLocalizedPropertyValue(rtl::OUString const&) const
More information about the Libreoffice-commits
mailing list