summaryrefslogtreecommitdiff
path: root/canvas/source/cairo/cairo_textlayout.cxx
diff options
context:
space:
mode:
authorJosé Guilherme Vanz <guilherme.sft@gmail.com>2012-11-10 02:41:41 -0200
committerTor Lillqvist <tml@iki.fi>2012-11-12 12:02:40 +0000
commitea7a809700ea0ee6d830e493c57ff272364e344a (patch)
tree33687dffbf289310ee7e300408ccccca8624a976 /canvas/source/cairo/cairo_textlayout.cxx
parent040e022d06ecadc36d3ef5c52178095a4d2c828a (diff)
unusedcode.ease cleanup
This commit removes some unused code from unusedcode.easy Change-Id: If3cad67a508cc85dbffd70d6344e1427bac0c775 Signed-off-by: José Guilherme Vanz <guilherme.sft@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/1021 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
Diffstat (limited to 'canvas/source/cairo/cairo_textlayout.cxx')
-rw-r--r--canvas/source/cairo/cairo_textlayout.cxx24
1 files changed, 0 insertions, 24 deletions
diff --git a/canvas/source/cairo/cairo_textlayout.cxx b/canvas/source/cairo/cairo_textlayout.cxx
index 317ea264751a..66b0f40823b4 100644
--- a/canvas/source/cairo/cairo_textlayout.cxx
+++ b/canvas/source/cairo/cairo_textlayout.cxx
@@ -310,30 +310,6 @@ namespace cairocanvas
cairo_set_font_size( pCairo, aFontRequest.CellSize );
}
- /** TextLayout:draw
- *
- * This function uses the "toy" api of the cairo library
- *
- **/
- bool TextLayout::draw( Cairo* pCairo )
- {
- ::osl::MutexGuard aGuard( m_aMutex );
-
- ::rtl::OUString aSubText = maText.Text.copy( maText.StartPosition, maText.Length );
- ::rtl::OString aUTF8String = ::rtl::OUStringToOString( aSubText, RTL_TEXTENCODING_UTF8 );
-
- cairo_save( pCairo );
- /* move to 0, 0 as cairo_show_text advances current point and current point is not restored by cairo_restore.
- before we were depending on unmodified current point which I believed was preserved by save/restore */
- cairo_move_to( pCairo, 0, 0 );
- useFont( pCairo );
- cairo_show_text( pCairo, aUTF8String.getStr() );
- cairo_restore( pCairo );
-
- return true;
- }
-
-
/**
* TextLayout::isCairoRenderable
*