diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-09-02 10:55:15 -0300 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2013-09-03 09:16:14 +0000 |
commit | b62826ad3887305a76ee1ceabe2060f9d6e8723f (patch) | |
tree | 554edd25a04e870c00799bb8d103ddfa3baf8de2 /vcl | |
parent | ea7ce8cf08521a7609d2ffc0969b1541fbbb9d0c (diff) |
Remove more unused methods
Change-Id: I79548f9dd1b83ef940e7a1302cf7b728610fed4a
Reviewed-on: https://gerrit.libreoffice.org/5757
Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
Tested-by: Thomas Arnhold <thomas@arnhold.org>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/dbggui.hxx | 8 | ||||
-rw-r--r-- | vcl/source/app/dbggui.cxx | 10 | ||||
-rw-r--r-- | vcl/source/gdi/bmpacc.cxx | 13 | ||||
-rw-r--r-- | vcl/source/gdi/bmpacc3.cxx | 40 |
4 files changed, 0 insertions, 71 deletions
diff --git a/vcl/inc/dbggui.hxx b/vcl/inc/dbggui.hxx index a52dbb001e96..c3393e6278fc 100644 --- a/vcl/inc/dbggui.hxx +++ b/vcl/inc/dbggui.hxx @@ -35,14 +35,6 @@ void DbgGUIDeInit(); void DbgGUIStart(); void DbgDialogTest( Window* pWindow ); -/** registers a named user-defined channel for emitting the diagnostic messages - @return - a unique number for this channel, which can be used for ->DbgData::nErrorOut, - ->DbgData::nWarningOut and ->DbgData::nTraceOut - @see DBG_OUT_USER_CHANNEL_0 -*/ -sal_uInt16 DbgRegisterNamedUserChannel( const OUString& _rChannelUIName, DbgPrintLine pProc ); - #define DBGGUI_INIT() DbgGUIInit() #define DBGGUI_DEINIT() DbgGUIDeInit() #define DBGGUI_START() DbgGUIStart() diff --git a/vcl/source/app/dbggui.cxx b/vcl/source/app/dbggui.cxx index 6833a95cd7d7..52177f079550 100644 --- a/vcl/source/app/dbggui.cxx +++ b/vcl/source/app/dbggui.cxx @@ -1785,16 +1785,6 @@ void DbgGUIStart() } } -// ----------------------------------------------------------------------- - -sal_uInt16 DbgRegisterNamedUserChannel( const OUString& _rChannelUIName, DbgPrintLine pProc ) -{ - DbgChannelId nChannelId = DbgRegisterUserChannel( pProc ); - UserDefinedChannels& rChannels = ImplDbgGetUserDefinedChannels(); - rChannels[ _rChannelUIName ] = nChannelId; - return nChannelId; -} - #endif // DBG_UTIL /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/gdi/bmpacc.cxx b/vcl/source/gdi/bmpacc.cxx index d27090def05c..8e3836596e32 100644 --- a/vcl/source/gdi/bmpacc.cxx +++ b/vcl/source/gdi/bmpacc.cxx @@ -384,19 +384,6 @@ BitmapColor BitmapReadAccess::GetColorWithFallback( double fY, double fX, const return rFallback; } -BitmapColor BitmapReadAccess::GetColorWithFallback( long nY, long nX, const BitmapColor& rFallback ) const -{ - if(mpBuffer) - { - if(nX >= 0 && nY >= 0 && nX < mpBuffer->mnWidth && nY < mpBuffer->mnHeight) - { - return GetColor(nY, nX); - } - } - - return rFallback; -} - BitmapWriteAccess::BitmapWriteAccess( Bitmap& rBitmap ) : BitmapReadAccess( rBitmap, sal_True ), mpLineColor ( NULL ), diff --git a/vcl/source/gdi/bmpacc3.cxx b/vcl/source/gdi/bmpacc3.cxx index 06c9c09128f2..791a75d9329d 100644 --- a/vcl/source/gdi/bmpacc3.cxx +++ b/vcl/source/gdi/bmpacc3.cxx @@ -243,44 +243,4 @@ void BitmapWriteAccess::DrawRect( const Rectangle& rRect ) } } -void BitmapWriteAccess::FillPolyPolygon( const PolyPolygon& rPolyPoly ) -{ - const sal_uInt16 nCount = rPolyPoly.Count(); - - if( nCount && mpFillColor ) - { - const BitmapColor& rFillColor = *mpFillColor; - Region aRegion( rPolyPoly ); - //Rectangle aRect; - - aRegion.Intersect( Rectangle( Point(), Size( Width(), Height() ) ) ); - - if( !aRegion.IsEmpty() ) - { - RectangleVector aRectangles; - aRegion.GetRegionRectangles(aRectangles); - - for(RectangleVector::const_iterator aRectIter(aRectangles.begin()); aRectIter != aRectangles.end(); ++aRectIter) - { - for(long nY = aRectIter->Top(), nEndY = aRectIter->Bottom(); nY <= nEndY; nY++) - { - for(long nX = aRectIter->Left(), nEndX = aRectIter->Right(); nX <= nEndX; nX++) - { - SetPixel(nY, nX, rFillColor); - } - } - } - - //RegionHandle aRegHandle( aRegion.BeginEnumRects() ); - // - //while( aRegion.GetEnumRects( aRegHandle, aRect ) ) - // for( long nY = aRect.Top(), nEndY = aRect.Bottom(); nY <= nEndY; nY++ ) - // for( long nX = aRect.Left(), nEndX = aRect.Right(); nX <= nEndX; nX++ ) - // SetPixel( nY, nX, rFillColor ); - // - //aRegion.EndEnumRects( aRegHandle ); - } - } -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |