summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-04-01 13:19:59 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-04-01 13:20:10 +0200
commit08b91c63131b7e625d2a2c489bc537dafe5c5963 (patch)
tree8e8328f03d9000310e3e71e55d8cd9e7574f459f /sc
parent829851c290047a08e419add91bca00234c3b9ef0 (diff)
remove unused GetCurDocViewWin
Change-Id: I7fe825cd1fb9e988eb8037e1f5dca7252c192f33
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/drwlayer.hxx2
-rw-r--r--sc/source/core/data/drwlayer.cxx15
2 files changed, 0 insertions, 17 deletions
diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx
index adb0c49623f8..7392a058b88a 100644
--- a/sc/inc/drwlayer.hxx
+++ b/sc/inc/drwlayer.hxx
@@ -103,8 +103,6 @@ public:
virtual SdrModel* AllocModel() const;
virtual void SetChanged( sal_Bool bFlg = sal_True );
- virtual Window* GetCurDocViewWin();
-
virtual SdrLayerID GetControlExportLayerId( const SdrObject & ) const;
sal_Bool HasObjects() const;
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 695036ba8488..6b49b70d82c8 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -334,21 +334,6 @@ SdrModel* ScDrawLayer::AllocModel() const
return new ScDrawLayer( NULL, aName );
}
-Window* ScDrawLayer::GetCurDocViewWin()
-{
- OSL_ENSURE( pDoc, "ScDrawLayer::GetCurDocViewWin without document" );
- if ( !pDoc )
- return NULL;
-
- SfxViewShell* pViewSh = SfxViewShell::Current();
- SfxObjectShell* pObjSh = pDoc->GetDocumentShell();
-
- if (pViewSh && pViewSh->GetObjectShell() == pObjSh)
- return pViewSh->GetWindow();
-
- return NULL;
-}
-
sal_Bool ScDrawLayer::ScAddPage( SCTAB nTab )
{
if (bDrawIsInUndo)