From a393af6e9146596ba2a197f0e369775bda7faa51 Mon Sep 17 00:00:00 2001 From: Jordi Mallach Date: Thu, 3 May 2012 17:01:40 +0200 Subject: [PATCH] Remove unused method canvas::tools::clipBlit --- canvas/inc/canvas/canvastools.hxx | 20 -------------------- canvas/source/tools/canvastools.cxx | 12 ------------ unusedcode.easy | 1 - 3 files changed, 33 deletions(-) diff --git a/canvas/inc/canvas/canvastools.hxx b/canvas/inc/canvas/canvastools.hxx index 1605b6628d68..87268ab8d7a0 100644 --- a/canvas/inc/canvas/canvastools.hxx +++ b/canvas/inc/canvas/canvastools.hxx @@ -337,26 +337,6 @@ namespace canvas @return false, if the resulting blit is empty, i.e. fully clipped away. */ - CANVASTOOLS_DLLPUBLIC bool clipBlit( ::basegfx::B2IRange& io_rSourceArea, - ::basegfx::B2IPoint& io_rDestPoint, - const ::basegfx::B2IRange& rSourceBounds, - const ::basegfx::B2IRange& rDestBounds ); - - /** Return range of integer pixel, which will cover the sprite - given by the floating point range. - - This method assumes that sprite sizes are always integer, - and that the sprite position (top, left edge of the - sprite) is rounded to the nearest integer before - rendering. - - @param rRange - Input range. Values must be within the representable - bounds of sal_Int32 - - @return the integer range, which is covered by the sprite - given by rRange. - */ CANVASTOOLS_DLLPUBLIC ::basegfx::B2IRange spritePixelAreaFromB2DRange( const ::basegfx::B2DRange& rRange ); /** Retrieve various internal properties of the actual canvas implementation. diff --git a/canvas/source/tools/canvastools.cxx b/canvas/source/tools/canvastools.cxx index 4a55ad55a60b..d5220fdcca9c 100644 --- a/canvas/source/tools/canvastools.cxx +++ b/canvas/source/tools/canvastools.cxx @@ -794,18 +794,6 @@ namespace canvas return true; } - bool clipBlit( ::basegfx::B2IRange& io_rSourceArea, - ::basegfx::B2IPoint& io_rDestPoint, - const ::basegfx::B2IRange& rSourceBounds, - const ::basegfx::B2IRange& rDestBounds ) - { - return clipAreaImpl( NULL, - io_rSourceArea, - io_rDestPoint, - rSourceBounds, - rDestBounds ); - } - ::basegfx::B2IRange spritePixelAreaFromB2DRange( const ::basegfx::B2DRange& rRange ) { if( rRange.isEmpty() ) diff --git a/unusedcode.easy b/unusedcode.easy index 00cd6fae91a7..bd03a585cc07 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -649,7 +649,6 @@ cairocanvas::CanvasHelper::getPalette() cairocanvas::SpriteDeviceHelper::getSurface() cairocanvas::TextLayout::draw(_cairo*) canvas::createSurfaceProxyManager(boost::shared_ptr const&) -canvas::tools::clipBlit(basegfx::B2IRange&, basegfx::B2IPoint&, basegfx::B2IRange const&, basegfx::B2IRange const&) cmis::Content::exchangeIdentity(com::sun::star::uno::Reference const&) cmis::Content::queryChildren(std::__debug::list, std::allocator > >&) comphelper::OSelectionChangeListener::disposeAdapter()