summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/pngwrite.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-03-02 10:43:28 +0200
committerNoel Grandin <noel@peralex.com>2015-03-19 10:45:00 +0200
commit062e40c76bcab664907737feace74f134a25c29c (patch)
tree83d8e99e62f8183bad31934cceed1c1626285b12 /vcl/source/gdi/pngwrite.cxx
parent4e6410ba0155d4c2ac539fd37f75aa72d489e206 (diff)
loplugin:constantfunction: vcl
Change-Id: I985b781a8d53190505fcb1182749cdaf5cd0f8d0
Diffstat (limited to 'vcl/source/gdi/pngwrite.cxx')
-rw-r--r--vcl/source/gdi/pngwrite.cxx13
1 files changed, 0 insertions, 13 deletions
diff --git a/vcl/source/gdi/pngwrite.cxx b/vcl/source/gdi/pngwrite.cxx
index 7f00f4e12e29..800b3d7ba393 100644
--- a/vcl/source/gdi/pngwrite.cxx
+++ b/vcl/source/gdi/pngwrite.cxx
@@ -90,7 +90,6 @@ private:
void ImplWriteChunk( sal_uInt8 nNumb );
void ImplWriteChunk( sal_uInt32 nNumb );
void ImplWriteChunk( unsigned char* pSource, sal_uInt32 nDatSize );
- void ImplCloseChunk( void ) const;
};
PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
@@ -233,7 +232,6 @@ PNGWriterImpl::PNGWriterImpl( const BitmapEx& rBmpEx,
if ( mbStatus )
{
ImplOpenChunk( PNGCHUNK_IEND ); // create an IEND chunk
- ImplCloseChunk();
}
}
}
@@ -299,7 +297,6 @@ bool PNGWriterImpl::ImplWriteHeader()
ImplWriteChunk((sal_uInt8) 0 ); // compression type
ImplWriteChunk((sal_uInt8) 0 ); // filter type - is not supported in this version
ImplWriteChunk((sal_uInt8) mnInterlaced ); // interlace type
- ImplCloseChunk();
}
else
mbStatus = false;
@@ -322,7 +319,6 @@ void PNGWriterImpl::ImplWritePalette()
*pTmp++ = rColor.GetBlue();
}
ImplWriteChunk( pTempBuf.get(), nCount*3 );
- ImplCloseChunk();
}
void PNGWriterImpl::ImplWriteTransparent ()
@@ -333,8 +329,6 @@ void PNGWriterImpl::ImplWriteTransparent ()
for ( sal_uLong n = 0UL; n <= nTransIndex; n++ )
ImplWriteChunk( ( nTransIndex == n ) ? (sal_uInt8) 0x0 : (sal_uInt8) 0xff );
-
- ImplCloseChunk();
}
void PNGWriterImpl::ImplWritepHYs( const BitmapEx& rBmpEx )
@@ -351,7 +345,6 @@ void PNGWriterImpl::ImplWritepHYs( const BitmapEx& rBmpEx )
ImplWriteChunk( nPrefSizeX );
ImplWriteChunk( nPrefSizeY );
ImplWriteChunk( nMapUnit );
- ImplCloseChunk();
}
}
}
@@ -440,7 +433,6 @@ void PNGWriterImpl::ImplWriteIDAT ()
nBytes = nBytesToWrite <= mnMaxChunkSize ? nBytesToWrite : mnMaxChunkSize;
ImplOpenChunk( PNGCHUNK_IDAT );
ImplWriteChunk( (unsigned char*)aOStm.GetData() + ( nIDATSize - nBytesToWrite ), nBytes );
- ImplCloseChunk();
nBytesToWrite -= nBytes;
}
}
@@ -642,11 +634,6 @@ void PNGWriterImpl::ImplWriteChunk ( unsigned char* pSource, sal_uInt32 nDatSize
}
}
-// nothing to do
-void PNGWriterImpl::ImplCloseChunk ( void ) const
-{
-}
-
PNGWriter::PNGWriter( const BitmapEx& rBmpEx,
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >* pFilterData ) :
mpImpl( new ::vcl::PNGWriterImpl( rBmpEx, pFilterData ) )