[Libreoffice-commits] core.git: canvas/source unusedcode.easy

Caolán McNamara caolanm at redhat.com
Wed Apr 22 01:28:43 PDT 2015


 canvas/source/directx/dx_spritedevicehelper.cxx |    7 -------
 canvas/source/directx/dx_spritedevicehelper.hxx |    1 -
 canvas/source/vcl/spritedevicehelper.cxx        |    9 ---------
 canvas/source/vcl/spritedevicehelper.hxx        |    1 -
 unusedcode.easy                                 |    1 -
 5 files changed, 19 deletions(-)

New commits:
commit a4d460c5f38e4262a657e4919d093bcc722a7763
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Apr 22 09:23:04 2015 +0100

    SpriteDeviceHelper::createBuffers unused and does nothing
    
    Change-Id: Ief6d775a53e5984e0dc6d9838280fb24bcbcb67f

diff --git a/canvas/source/directx/dx_spritedevicehelper.cxx b/canvas/source/directx/dx_spritedevicehelper.cxx
index feede34..1581d52 100644
--- a/canvas/source/directx/dx_spritedevicehelper.cxx
+++ b/canvas/source/directx/dx_spritedevicehelper.cxx
@@ -170,13 +170,6 @@ namespace dxcanvas
         return false;
     }
 
-    ::sal_Int32 SpriteDeviceHelper::createBuffers( ::sal_Int32 /*nBuffers*/ )
-    {
-        // TODO(F3): implement XBufferStrategy interface. For now, we
-        // _always_ will have exactly one backbuffer
-        return 1;
-    }
-
     void SpriteDeviceHelper::destroyBuffers()
     {
         // TODO(F3): implement XBufferStrategy interface. For now, we
diff --git a/canvas/source/directx/dx_spritedevicehelper.hxx b/canvas/source/directx/dx_spritedevicehelper.hxx
index bd6ec17..daced3b 100644
--- a/canvas/source/directx/dx_spritedevicehelper.hxx
+++ b/canvas/source/directx/dx_spritedevicehelper.hxx
@@ -67,7 +67,6 @@ namespace dxcanvas
         bool hasFullScreenMode(  );
         bool enterFullScreenMode( bool bEnter );
 
-        ::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
         void        destroyBuffers(  );
         sal_Bool  showBuffer( bool bIsVisible, sal_Bool bUpdateAll );
         sal_Bool  switchBuffer( bool bIsVisible, sal_Bool bUpdateAll );
diff --git a/canvas/source/vcl/spritedevicehelper.cxx b/canvas/source/vcl/spritedevicehelper.cxx
index 6e347b9..7fedd46 100644
--- a/canvas/source/vcl/spritedevicehelper.cxx
+++ b/canvas/source/vcl/spritedevicehelper.cxx
@@ -59,15 +59,6 @@ namespace vclcanvas
 #endif
     }
 
-    ::sal_Int32 SpriteDeviceHelper::createBuffers( ::sal_Int32 nBuffers )
-    {
-        (void)nBuffers;
-
-        // TODO(F3): implement XBufferStrategy interface. For now, we
-        // _always_ will have exactly one backbuffer
-        return 1;
-    }
-
     bool SpriteDeviceHelper::showBuffer( bool, bool )
     {
         OSL_FAIL("Not supposed to be called, handled by SpriteCanvas");
diff --git a/canvas/source/vcl/spritedevicehelper.hxx b/canvas/source/vcl/spritedevicehelper.hxx
index b2b9805..c91355d 100644
--- a/canvas/source/vcl/spritedevicehelper.hxx
+++ b/canvas/source/vcl/spritedevicehelper.hxx
@@ -48,7 +48,6 @@ namespace vclcanvas
         /// Dispose all internal references
         void disposing();
 
-        ::sal_Int32 createBuffers( ::sal_Int32 nBuffers );
         bool  showBuffer( bool bWindowVisible, bool bUpdateAll );
         bool  switchBuffer( bool bWindowVisible, bool bUpdateAll );
 
diff --git a/unusedcode.easy b/unusedcode.easy
index cd8cb1a..f9cbef5 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -109,4 +109,3 @@ vclcanvas::CanvasHelper::drawPoint(com::sun::star::rendering::XCanvas const*, co
 vclcanvas::CanvasHelper::setData(com::sun::star::uno::Sequence<signed char> const&, com::sun::star::rendering::IntegerBitmapLayout const&, com::sun::star::geometry::IntegerRectangle2D const&)
 vclcanvas::CanvasHelper::setPixel(com::sun::star::uno::Sequence<signed char> const&, com::sun::star::rendering::IntegerBitmapLayout const&, com::sun::star::geometry::IntegerPoint2D const&)
 vclcanvas::DeviceHelper::enterFullScreenMode(bool)
-vclcanvas::SpriteDeviceHelper::createBuffers(int)


More information about the Libreoffice-commits mailing list