diff options
author | August Sodora <augsod@gmail.com> | 2011-12-20 14:45:49 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2011-12-20 15:23:34 -0500 |
commit | 0696c0aa742c57ae93733bd43c694d847c2bcd7e (patch) | |
tree | d74a8f156437f28df29fd9fba09517cb8a9675f6 /vcl/source | |
parent | e8f980d10cf95b8bced1ca18a55b2a4784f6dcc9 (diff) |
callcatcher: Remove unused code
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/helper/canvastools.cxx | 44 | ||||
-rw-r--r-- | vcl/source/window/arrange.cxx | 32 | ||||
-rw-r--r-- | vcl/source/window/printdlg.cxx | 5 |
3 files changed, 0 insertions, 81 deletions
diff --git a/vcl/source/helper/canvastools.cxx b/vcl/source/helper/canvastools.cxx index b2128130a676..b8dce8d6ecb4 100644 --- a/vcl/source/helper/canvastools.cxx +++ b/vcl/source/helper/canvastools.cxx @@ -79,48 +79,6 @@ namespace vcl { namespace unotools { - // #i79917# removed helpers bezierSequenceFromPolygon and - // pointSequenceFromPolygon here - // Also all helpers using tools Polygon and PolyPolygon will get mapped to the - // B2DPolygon helpers for these cases, see comments with the same TaskID below. - // TODO: Remove those wrapped methods - - //--------------------------------------------------------------------------------------- - - uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice, - const ::Polygon& inputPolygon ) - { - RTL_LOGFILE_CONTEXT( aLog, "::vcl::unotools::xPolyPolygonFromPolygon()" ); - - // #i79917# map to basegfx - const basegfx::B2DPolygon aB2DPolygon(inputPolygon.getB2DPolygon()); - return basegfx::unotools::xPolyPolygonFromB2DPolygon(xGraphicDevice, aB2DPolygon); - } - - //--------------------------------------------------------------------------------------- - - uno::Reference< rendering::XPolyPolygon2D > xPolyPolygonFromPolyPolygon( const uno::Reference< rendering::XGraphicDevice >& xGraphicDevice, - const ::PolyPolygon& inputPolyPolygon ) - { - RTL_LOGFILE_CONTEXT( aLog, "::vcl::unotools::xPolyPolygonFromPolyPolygon()" ); - - // #i79917# map to basegfx - const basegfx::B2DPolyPolygon aB2DPolyPolygon(inputPolyPolygon.getB2DPolyPolygon()); - return basegfx::unotools::xPolyPolygonFromB2DPolyPolygon(xGraphicDevice, aB2DPolyPolygon); - } - - //--------------------------------------------------------------------------------------- - - uno::Reference< rendering::XBitmap > xBitmapFromBitmap( const uno::Reference< rendering::XGraphicDevice >& /*xGraphicDevice*/, - const ::Bitmap& inputBitmap ) - { - RTL_LOGFILE_CONTEXT( aLog, "::vcl::unotools::xBitmapFromBitmap()" ); - - return new vcl::unotools::VclCanvasBitmap( BitmapEx( inputBitmap ) ); - } - - //--------------------------------------------------------------------------------------- - uno::Reference< rendering::XBitmap > xBitmapFromBitmapEx( const uno::Reference< rendering::XGraphicDevice >& /*xGraphicDevice*/, const ::BitmapEx& inputBitmap ) { @@ -129,8 +87,6 @@ namespace vcl return new vcl::unotools::VclCanvasBitmap( inputBitmap ); } - //--------------------------------------------------------------------------------------- - namespace { inline bool operator==( const rendering::IntegerBitmapLayout& rLHS, diff --git a/vcl/source/window/arrange.cxx b/vcl/source/window/arrange.cxx index 11ca774113e6..847abf272aed 100644 --- a/vcl/source/window/arrange.cxx +++ b/vcl/source/window/arrange.cxx @@ -524,38 +524,6 @@ size_t RowOrColumn::addChild( boost::shared_ptr<WindowArranger> const & i_pChild return nIndex; } -void RowOrColumn::remove( Window* i_pWindow ) -{ - if( i_pWindow ) - { - for( std::vector< WindowArranger::Element >::iterator it = m_aElements.begin(); - it != m_aElements.end(); ++it ) - { - if( it->m_pElement == i_pWindow ) - { - m_aElements.erase( it ); - return; - } - } - } -} - -void RowOrColumn::remove( boost::shared_ptr<WindowArranger> const & i_pChild ) -{ - if( i_pChild ) - { - for( std::vector< WindowArranger::Element >::iterator it = m_aElements.begin(); - it != m_aElements.end(); ++it ) - { - if( it->m_pChild == i_pChild ) - { - m_aElements.erase( it ); - return; - } - } - } -} - // ---------------------------------------- // vcl::LabeledElement //----------------------------------------- diff --git a/vcl/source/window/printdlg.cxx b/vcl/source/window/printdlg.cxx index b1c9b4b9bf16..06096839461b 100644 --- a/vcl/source/window/printdlg.cxx +++ b/vcl/source/window/printdlg.cxx @@ -1028,11 +1028,6 @@ bool PrintDialog::isPrintToFile() return maOptionsPage.maToFileBox.IsChecked(); } -int PrintDialog::getCopyCount() -{ - return static_cast<int>(maJobPage.maCopyCountField.GetValue()); -} - bool PrintDialog::isCollate() { return maJobPage.maCopyCountField.GetValue() > 1 ? maJobPage.maCollateBox.IsChecked() : sal_False; |