[Libreoffice-commits] core.git: svx/source

Matúš Kukan matus.kukan at gmail.com
Tue Apr 30 08:31:52 PDT 2013


 svx/source/svdraw/svdouno.cxx |   24 ------------------------
 1 file changed, 24 deletions(-)

New commits:
commit 06bc7619745015d9b49360229ae2b7d8795d5701
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Tue Apr 30 17:27:13 2013 +0200

    remove unused RestoreXViewGraphics class
    
    Change-Id: I5b4075623631a4c3148a53e80fe6c011ccabdc37

diff --git a/svx/source/svdraw/svdouno.cxx b/svx/source/svdraw/svdouno.cxx
index 533668b..0669713 100644
--- a/svx/source/svdraw/svdouno.cxx
+++ b/svx/source/svdraw/svdouno.cxx
@@ -255,30 +255,6 @@ void SdrUnoObj::SetContextWritingMode( const sal_Int16 _nContextWritingMode )
     }
 }
 
-// ----------------------------------------------------------------------------
-namespace
-{
-    /** helper class to restore graphics at <awt::XView> object after <SdrUnoObj::Paint>
-        Restoration of graphics necessary to assure that paint on a window  */
-    class RestoreXViewGraphics
-    {
-        private:
-            uno::Reference< awt::XView >        m_rXView;
-            uno::Reference< awt::XGraphics >    m_rXGraphics;
-
-        public:
-            RestoreXViewGraphics( const uno::Reference< awt::XView >& _rXView )
-            {
-                m_rXView = _rXView;
-                m_rXGraphics = m_rXView->getGraphics();
-            }
-            ~RestoreXViewGraphics()
-            {
-                m_rXView->setGraphics( m_rXGraphics );
-            }
-    };
-}
-
 void SdrUnoObj::TakeObjNameSingul(XubString& rName) const
 {
     rName = ImpGetResStr(STR_ObjNameSingulUno);


More information about the Libreoffice-commits mailing list