summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-11-07 22:27:51 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-11-07 22:29:13 +0000
commit8ed5e3bdabb3d9682316c7093d30e1152b41dbcf (patch)
tree09b4e284e44c44c5a22a864f83fc9ca020b1d733 /vcl
parent3b5ec68b846eb2f1eb289cc95047864e51941cf0 (diff)
callcatcher: remove some unused Graphic methods
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/graph.hxx3
-rw-r--r--vcl/source/gdi/graph.cxx46
2 files changed, 0 insertions, 49 deletions
diff --git a/vcl/inc/vcl/graph.hxx b/vcl/inc/vcl/graph.hxx
index acb72717a395..d34a2132e76a 100644
--- a/vcl/inc/vcl/graph.hxx
+++ b/vcl/inc/vcl/graph.hxx
@@ -188,14 +188,11 @@ public:
public:
- static sal_uInt16 GetGraphicsCompressMode( SvStream& rIStm );
-
void SetDocFileName( const String& rName, sal_uLong nFilePos );
const String& GetDocFileName() const;
sal_uLong GetDocFilePos() const;
sal_Bool ReadEmbedded( SvStream& rIStream, sal_Bool bSwap = sal_False );
- sal_Bool WriteEmbedded( SvStream& rOStream );
sal_Bool SwapOut();
sal_Bool SwapOut( SvStream* pOStm );
diff --git a/vcl/source/gdi/graph.cxx b/vcl/source/gdi/graph.cxx
index 8205a6b7cdc2..ece06caad51c 100644
--- a/vcl/source/gdi/graph.cxx
+++ b/vcl/source/gdi/graph.cxx
@@ -680,44 +680,6 @@ void Graphic::SetContext( GraphicReader* pReader )
// ------------------------------------------------------------------------
-sal_uInt16 Graphic::GetGraphicsCompressMode( SvStream& rIStm )
-{
- const sal_uLong nPos = rIStm.Tell();
- const sal_uInt16 nOldFormat = rIStm.GetNumberFormatInt();
- sal_uInt32 nTmp32;
- sal_uInt16 nTmp16;
- sal_uInt16 nCompressMode = COMPRESSMODE_NONE;
-
- rIStm.SetNumberFormatInt( NUMBERFORMAT_INT_LITTLEENDIAN );
-
- rIStm >> nTmp32;
-
- // is it a swapped graphic with a bitmap?
- rIStm.SeekRel( (nTmp32 == (sal_uInt32) GRAPHIC_BITMAP ) ? 40 : -4 );
-
- // try to read bitmap id
- rIStm >> nTmp16;
-
- // check id of BitmapFileHeader
- if( 0x4D42 == nTmp16 )
- {
- // seek to compress field of BitmapInfoHeader
- rIStm.SeekRel( 28 );
- rIStm >> nTmp32;
-
- // Compare with our own compressmode
- if( ZCOMPRESS == nTmp32 )
- nCompressMode = COMPRESSMODE_ZBITMAP;
- }
-
- rIStm.SetNumberFormatInt( nOldFormat );
- rIStm.Seek( nPos );
-
- return nCompressMode;
-}
-
-// ------------------------------------------------------------------------
-
void Graphic::SetDocFileName( const String& rName, sal_uLong nFilePos )
{
mpImpGraphic->ImplSetDocFileName( rName, nFilePos );
@@ -747,14 +709,6 @@ sal_Bool Graphic::ReadEmbedded( SvStream& rIStream, sal_Bool bSwap )
// ------------------------------------------------------------------------
-sal_Bool Graphic::WriteEmbedded( SvStream& rOStream )
-{
- ImplTestRefCount();
- return mpImpGraphic->ImplWriteEmbedded( rOStream );
-}
-
-// ------------------------------------------------------------------------
-
sal_Bool Graphic::SwapOut()
{
ImplTestRefCount();