Kaydet (Commit) f79a846c authored tarafından Thomas Arnhold's avatar Thomas Arnhold

callcatcher: cleanup Animation::Foo

üst 63bd3f53
......@@ -192,8 +192,6 @@ public:
sal_Bool operator!=( const Animation& rAnimation ) const
{ return !(*this==rAnimation); }
sal_Bool IsEqual( const Animation& rAnimation ) const;
sal_Bool IsEmpty() const;
void SetEmpty();
......@@ -254,7 +252,6 @@ public:
);
sal_Bool Invert();
sal_Bool Mirror( sal_uLong nMirrorFlags );
sal_Bool Dither( sal_uLong nDitherFlags = BMP_DITHER_MATRIX );
sal_Bool Adjust(
short nLuminancePercent = 0,
short nContrastPercent = 0,
......
......@@ -190,27 +190,6 @@ sal_Bool Animation::operator==( const Animation& rAnimation ) const
// ------------------------------------------------------------------
sal_Bool Animation::IsEqual( const Animation& rAnimation ) const
{
const size_t nCount = maList.size();
sal_Bool bRet = sal_False;
if( rAnimation.maList.size() == nCount
&& rAnimation.maBitmapEx.IsEqual( maBitmapEx )
&& rAnimation.maGlobalSize == maGlobalSize
&& rAnimation.meCycleMode == meCycleMode
)
{
for( size_t n = 0; ( n < nCount ) && !bRet; n++ )
if( maList[ n ]->IsEqual( *rAnimation.maList[ n ] ) )
bRet = sal_True;
}
return bRet;
}
// ------------------------------------------------------------------
sal_Bool Animation::IsEmpty() const
{
return( maBitmapEx.IsEmpty() && maList.empty() );
......@@ -763,29 +742,6 @@ sal_Bool Animation::Mirror( sal_uLong nMirrorFlags )
// -----------------------------------------------------------------------
sal_Bool Animation::Dither( sal_uLong nDitherFlags )
{
DBG_ASSERT( !IsInAnimation(), "Animation modified while it is animated" );
sal_Bool bRet;
if( !IsInAnimation() && !maList.empty() )
{
bRet = sal_True;
for( size_t i = 0, n = maList.size(); ( i < n ) && bRet; ++i )
bRet = maList[ i ]->aBmpEx.Dither( nDitherFlags );
maBitmapEx.Dither( nDitherFlags );
}
else
bRet = sal_False;
return bRet;
}
// -----------------------------------------------------------------------
sal_Bool Animation::Adjust( short nLuminancePercent, short nContrastPercent,
short nChannelRPercent, short nChannelGPercent, short nChannelBPercent,
double fGamma, sal_Bool bInvert )
......
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