Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


This patch removes unused code as listed in unusedcode.easy
From 08525faa466535c5f10bcd413199351f5d953975 Mon Sep 17 00:00:00 2001
From: Santiago Martinez <smvarela@gmail.com>
Date: Sun, 25 Mar 2012 18:24:32 +0200
Subject: [PATCH] Remove unused code in svtools.

---
 svtools/source/filter/wmf/winmtf.cxx |   23 -----------------------
 svtools/source/filter/wmf/winmtf.hxx |    3 ---
 2 files changed, 0 insertions(+), 26 deletions(-)

diff --git a/svtools/source/filter/wmf/winmtf.cxx b/svtools/source/filter/wmf/winmtf.cxx
index 090886e..d9597ff 100644
--- a/svtools/source/filter/wmf/winmtf.cxx
+++ b/svtools/source/filter/wmf/winmtf.cxx
@@ -658,13 +658,6 @@ void WinMtfOutput::SelectObject( sal_Int32 nIndex )
 
 //-----------------------------------------------------------------------------------
 
-void WinMtfOutput::SetFont( const Font& rFont )
-{
-    maFont = rFont;
-}
-
-//-----------------------------------------------------------------------------------
-
 const Font& WinMtfOutput::GetFont() const
 {
     return maFont;
@@ -679,13 +672,6 @@ void WinMtfOutput::SetTextLayoutMode( const sal_uInt32 nTextLayoutMode )
 
 //-----------------------------------------------------------------------------------
 
-sal_uInt32 WinMtfOutput::GetTextLayoutMode() const
-{
-    return mnTextLayoutMode;
-}
-
-//-----------------------------------------------------------------------------------
-
 void WinMtfOutput::SetBkMode( sal_uInt32 nMode )
 {
     mnBkMode = nMode;
@@ -1151,15 +1137,6 @@ void WinMtfOutput::LineTo( const Point& rPoint, sal_Bool bRecordPath )
 
 //-----------------------------------------------------------------------------------
 
-void WinMtfOutput::DrawLine( const Point& rSource, const Point& rDest )
-{
-    UpdateClipRegion();
-    UpdateLineStyle();
-    mpGDIMetaFile->AddAction( new MetaLineAction( ImplMap( rSource), ImplMap( rDest ), 
maLineStyle.aLineInfo ) );
-}
-
-//-----------------------------------------------------------------------------------
-
 void WinMtfOutput::DrawRect( const Rectangle& rRect, sal_Bool bEdge )
 {
     UpdateClipRegion();
diff --git a/svtools/source/filter/wmf/winmtf.hxx b/svtools/source/filter/wmf/winmtf.hxx
index 6f5e778..bf81be5 100644
--- a/svtools/source/filter/wmf/winmtf.hxx
+++ b/svtools/source/filter/wmf/winmtf.hxx
@@ -696,10 +696,8 @@ public:
     void                SelectObject( sal_Int32 nIndex );
     CharSet             GetCharSet(){ return maFont.GetCharSet(); };
     WinMtfFillStyle&    GetFillStyle () { return maFillStyle; }
-    void                SetFont( const Font& rFont );
     const Font&         GetFont() const;
     void                SetTextLayoutMode( const sal_uInt32 nLayoutMode );
-    sal_uInt32          GetTextLayoutMode() const;
 
     void                ClearPath(){ aPathObj.Init(); };
     void                ClosePath(){ aPathObj.ClosePath(); };
@@ -708,7 +706,6 @@ public:
     void                MoveTo( const Point& rPoint, sal_Bool bRecordPath = sal_False );
     void                LineTo( const Point& rPoint, sal_Bool bRecordPath = sal_False );
     void                DrawPixel( const Point& rSource, const Color& rColor );
-    void                DrawLine( const Point& rSource, const Point& rDest );
     void                DrawRect( const Rectangle& rRect, sal_Bool bEdge = sal_True );
     void                DrawRoundRect( const Rectangle& rRect, const Size& rSize );
     void                DrawEllipse( const Rectangle& rRect );
-- 
1.7.7.6


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.