Kaydet (Commit) c564fdfe authored tarafından Thomas Arnhold's avatar Thomas Arnhold Kaydeden (comit) Andras Timar

unusedcode.easy: remove recently unused code

Change-Id: Ia33e933d9c15c2afa25915b7e8d6a13b0c740d1c
Reviewed-on: https://gerrit.libreoffice.org/426Reviewed-by: 's avatarAndras Timar <atimar@suse.com>
Tested-by: 's avatarAndras Timar <atimar@suse.com>
üst 52755d6d
AlphaMask::Scale(Size const&, unsigned long)
AlphaMask::Scale(double const&, double const&, unsigned long)
AlphaMask::ScaleCropRotate(double const&, double const&, Rectangle const&, long, Color const&, unsigned long)
FontSelectPattern::FontSelectPattern(PhysicalFontFace const&, Size const&, float, int, bool)
PopupMenu::SetSelectedEntry(unsigned short)
SanExtensionImpl::setCertExtn(unsigned char*, unsigned int, unsigned char*, unsigned int, unsigned char)
......@@ -20,7 +17,6 @@ VCLXPrinterServer::getImplementationId()
VCLXPrinterServer::getTypes()
VirtualDevice::SetOutputSizePixelScaleOffsetAndBuffer(Size const&, Fraction const&, Point const&, boost::shared_array<unsigned char> const&)
Window::PostUserEvent(unsigned long&, unsigned long, void*)
X11SalGraphics::Clip(int&, int&, unsigned int&, unsigned int&, int&, int&) const
XclExpPivotCache::GetFieldAcc(rtl::OUString const&)
binfilter::ImpSvtData::~ImpSvtData()
binfilter::PCodeBuffConvertor<unsigned int, unsigned short>::GetBuffer()
......
......@@ -173,19 +173,6 @@ protected:
inline GC GetCopyGC();
inline GC GetStippleGC();
int Clip ( XLIB_Region pRegion,
int &nX,
int &nY,
unsigned int &nDX,
unsigned int &nDY,
int &nSrcX,
int &nSrcY ) const;
int Clip ( int &nX,
int &nY,
unsigned int &nDX,
unsigned int &nDY,
int &nSrcX,
int &nSrcY ) const;
using SalGraphics::DrawBitmap;
void DrawBitmap( const SalTwoRect *pPosAry,
SalGraphics *pThis,
......
......@@ -123,11 +123,6 @@ public:
sal_Bool Replace( sal_uInt8 cSearchTransparency, sal_uInt8 cReplaceTransparency,
sal_uLong nTol = 0UL );
sal_Bool Scale( const Size& rNewSize, sal_uLong nScaleFlag );
sal_Bool Scale( const double& rScaleX, const double& rScaleY, sal_uLong nScaleFlag = BMP_SCALE_DEFAULT );
sal_Bool ScaleCropRotate( const double& rScaleX, const double& rScaleY, const Rectangle& rRectPixel, long nAngle10,
const Color& rFillColor, sal_uLong nScaleFlag = BMP_SCALE_DEFAULT );
BitmapReadAccess* AcquireReadAccess()
{
return Bitmap::AcquireReadAccess();
......
......@@ -287,35 +287,4 @@ void AlphaMask::ReleaseAccess( BitmapReadAccess* pAccess )
}
}
sal_Bool AlphaMask::Scale( const Size& rNewSize, sal_uLong nScaleFlag )
{
sal_Bool bRet = Bitmap::Scale( rNewSize, nScaleFlag );
if( bRet )
Bitmap::Convert( BMP_CONVERSION_8BIT_GREYS );
return bRet;
}
sal_Bool AlphaMask::Scale( const double& rScaleX, const double& rScaleY, sal_uLong nScaleFlag )
{
sal_Bool bRet = Bitmap::Scale( rScaleX, rScaleY, nScaleFlag );
if( bRet )
Bitmap::Convert( BMP_CONVERSION_8BIT_GREYS );
return bRet;
}
sal_Bool AlphaMask::ScaleCropRotate(
const double& rScaleX, const double& rScaleY, const Rectangle& rRectPixel, long nAngle10,
const Color& rFillColor, sal_uLong nScaleFlag )
{
sal_Bool bRet = Bitmap::ScaleCropRotate( rScaleX, rScaleY, rRectPixel, nAngle10, rFillColor, nScaleFlag );
if( bRet )
Bitmap::Convert( BMP_CONVERSION_8BIT_GREYS );
return bRet;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -242,86 +242,6 @@ inline GC X11SalGraphics::GetStippleGC()
return pStippleGC_;
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
int X11SalGraphics::Clip( XLIB_Region pRegion,
int &nX,
int &nY,
unsigned int &nDX,
unsigned int &nDY,
int &nSrcX,
int &nSrcY ) const
{
XRectangle aRect;
XClipBox( pRegion, &aRect );
if( int(nX + nDX) <= int(aRect.x) || nX >= int(aRect.x + aRect.width) )
return RectangleOut;
if( int(nY + nDY) <= int(aRect.y) || nY >= int(aRect.y + aRect.height) )
return RectangleOut;
if( nX < aRect.x )
{
nSrcX += aRect.x - nX;
nDX -= aRect.x - nX;
nX = aRect.x;
}
else if( int(nX + nDX) > int(aRect.x + aRect.width) )
nDX = aRect.x + aRect.width - nX;
if( nY < aRect.y )
{
nSrcY += aRect.y - nY;
nDY -= aRect.y - nY;
nY = aRect.y;
}
else if( int(nY + nDY) > int(aRect.y + aRect.height) )
nDY = aRect.y + aRect.height - nY;
return RectangleIn;
}
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
int X11SalGraphics::Clip( int &nX,
int &nY,
unsigned int &nDX,
unsigned int &nDY,
int &nSrcX,
int &nSrcY ) const
{
if( pPaintRegion_
&& RectangleOut == Clip( pPaintRegion_, nX, nY, nDX, nDY, nSrcX, nSrcY ) )
return RectangleOut;
if( mpClipRegion
&& RectangleOut == Clip( mpClipRegion, nX, nY, nDX, nDY, nSrcX, nSrcY ) )
return RectangleOut;
int nPaint;
if( pPaintRegion_ )
{
nPaint = XRectInRegion( pPaintRegion_, nX, nY, nDX, nDY );
if( RectangleOut == nPaint )
return RectangleOut;
}
else
nPaint = RectangleIn;
int nClip;
if( mpClipRegion )
{
nClip = XRectInRegion( mpClipRegion, nX, nY, nDX, nDY );
if( RectangleOut == nClip )
return RectangleOut;
}
else
nClip = RectangleIn;
return RectangleIn == nClip && RectangleIn == nPaint
? RectangleIn
: RectanglePart;
}
// -=-= SalGraphics =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment