Kaydet (Commit) 4d1d6071 authored tarafından Noel Grandin's avatar Noel Grandin

remove unused Link<> field

Change-Id: Ia07a1db94bacad8c1d9c108ee6e2ac2f82b6581f
üst 1c061348
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
#include <vcl/dllapi.h> #include <vcl/dllapi.h>
#include <tools/gen.hxx> #include <tools/gen.hxx>
#include <tools/link.hxx>
#include <vcl/mapmod.hxx> #include <vcl/mapmod.hxx>
#include <vcl/bitmap.hxx> #include <vcl/bitmap.hxx>
#include <vcl/vclptr.hxx> #include <vcl/vclptr.hxx>
...@@ -69,7 +68,6 @@ private: ...@@ -69,7 +68,6 @@ private:
MapMode aPrefMapMode; MapMode aPrefMapMode;
Size aPrefSize; Size aPrefSize;
Link<> aHookHdlLink;
GDIMetaFile* pPrev; GDIMetaFile* pPrev;
GDIMetaFile* pNext; GDIMetaFile* pNext;
VclPtr<OutputDevice> pOutDev; VclPtr<OutputDevice> pOutDev;
...@@ -111,7 +109,6 @@ private: ...@@ -111,7 +109,6 @@ private:
protected: protected:
void Linker( OutputDevice* pOut, bool bLink ); void Linker( OutputDevice* pOut, bool bLink );
long Hook();
public: public:
GDIMetaFile(); GDIMetaFile();
......
...@@ -126,7 +126,6 @@ GDIMetaFile::GDIMetaFile( const GDIMetaFile& rMtf ) : ...@@ -126,7 +126,6 @@ GDIMetaFile::GDIMetaFile( const GDIMetaFile& rMtf ) :
nCurrentActionElement( rMtf.nCurrentActionElement ), nCurrentActionElement( rMtf.nCurrentActionElement ),
aPrefMapMode ( rMtf.aPrefMapMode ), aPrefMapMode ( rMtf.aPrefMapMode ),
aPrefSize ( rMtf.aPrefSize ), aPrefSize ( rMtf.aPrefSize ),
aHookHdlLink ( rMtf.aHookHdlLink ),
pPrev ( rMtf.pPrev ), pPrev ( rMtf.pPrev ),
pNext ( rMtf.pNext ), pNext ( rMtf.pNext ),
pOutDev ( NULL ), pOutDev ( NULL ),
...@@ -206,7 +205,6 @@ GDIMetaFile& GDIMetaFile::operator=( const GDIMetaFile& rMtf ) ...@@ -206,7 +205,6 @@ GDIMetaFile& GDIMetaFile::operator=( const GDIMetaFile& rMtf )
aPrefMapMode = rMtf.aPrefMapMode; aPrefMapMode = rMtf.aPrefMapMode;
aPrefSize = rMtf.aPrefSize; aPrefSize = rMtf.aPrefSize;
aHookHdlLink = rMtf.aHookHdlLink;
pPrev = rMtf.pPrev; pPrev = rMtf.pPrev;
pNext = rMtf.pNext; pNext = rMtf.pNext;
pOutDev = NULL; pOutDev = NULL;
...@@ -295,11 +293,6 @@ void GDIMetaFile::Linker( OutputDevice* pOut, bool bLink ) ...@@ -295,11 +293,6 @@ void GDIMetaFile::Linker( OutputDevice* pOut, bool bLink )
} }
} }
long GDIMetaFile::Hook()
{
return aHookHdlLink.Call( this );
}
void GDIMetaFile::Record( OutputDevice* pOut ) void GDIMetaFile::Record( OutputDevice* pOut )
{ {
if( bRecord ) if( bRecord )
...@@ -325,7 +318,7 @@ void GDIMetaFile::Play( GDIMetaFile& rMtf, size_t nPos ) ...@@ -325,7 +318,7 @@ void GDIMetaFile::Play( GDIMetaFile& rMtf, size_t nPos )
for( size_t nCurPos = nCurrentActionElement; nCurPos < nPos; nCurPos++ ) for( size_t nCurPos = nCurrentActionElement; nCurPos < nPos; nCurPos++ )
{ {
if( !Hook() && pAction ) if( pAction )
{ {
pAction->Duplicate(); pAction->Duplicate();
rMtf.AddAction( pAction ); rMtf.AddAction( pAction );
...@@ -361,7 +354,7 @@ void GDIMetaFile::Play( OutputDevice* pOut, size_t nPos ) ...@@ -361,7 +354,7 @@ void GDIMetaFile::Play( OutputDevice* pOut, size_t nPos )
size_t i = 0; size_t i = 0;
for( size_t nCurPos = nCurrentActionElement; nCurPos < nPos; nCurPos++ ) for( size_t nCurPos = nCurrentActionElement; nCurPos < nPos; nCurPos++ )
{ {
if( !Hook() && pAction ) if( pAction )
{ {
if( pAction->GetType() == MetaActionType::COMMENT && if( pAction->GetType() == MetaActionType::COMMENT &&
static_cast<MetaCommentAction*>(pAction)->GetComment() == "DELEGATE_PLUGGABLE_RENDERER" ) static_cast<MetaCommentAction*>(pAction)->GetComment() == "DELEGATE_PLUGGABLE_RENDERER" )
......
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