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