summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-12-16 17:15:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-12-21 10:10:56 +0000
commitb57eceb231b61abc7121686d70df8d7c0dfacb75 (patch)
tree0be1785e43e563d09ff1fff1154188fb4fb5839b
parent4eb4514ee1690b43c8abf091a8ee4591383388da (diff)
callcatcher: remove unused Find1RefWindow variant
-rw-r--r--sc/inc/scmod.hxx1
-rw-r--r--sc/source/ui/app/scmod.cxx16
-rw-r--r--unusedcode.easy1
3 files changed, 0 insertions, 18 deletions
diff --git a/sc/inc/scmod.hxx b/sc/inc/scmod.hxx
index 5a51b088be9f..70af96a0b65d 100644
--- a/sc/inc/scmod.hxx
+++ b/sc/inc/scmod.hxx
@@ -256,7 +256,6 @@ SC_DLLPUBLIC void SetAppOptions ( const ScAppOptions& rO
SC_DLLPUBLIC sal_Bool UnregisterRefWindow( sal_uInt16 nSlotId, Window *pWnd );
SC_DLLPUBLIC sal_Bool IsAliveRefDlg( sal_uInt16 nSlotId, Window *pWnd );
SC_DLLPUBLIC Window * Find1RefWindow( sal_uInt16 nSlotId, Window *pWndAncestor );
- SC_DLLPUBLIC Window * Find1RefWindow( Window *pWndAncestor );
};
#define SC_MOD() ( *(ScModule**) GetAppData(SHL_CALC) )
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 72c92e4fe131..47ef6b9d7ba4 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -2201,20 +2201,4 @@ Window * ScModule::Find1RefWindow( sal_uInt16 nSlotId, Window *pWndAncestor )
return NULL;
}
-Window * ScModule::Find1RefWindow( Window *pWndAncestor )
-{
- if (!pWndAncestor)
- return NULL;
-
- while( Window *pParent = pWndAncestor->GetParent() ) pWndAncestor = pParent;
-
- for( std::map<sal_uInt16, std::list<Window*> >::iterator i = m_mapRefWindow.begin();
- i!=m_mapRefWindow.end(); ++i )
- for( std::list<Window*>::iterator j = i->second.begin(); j!=i->second.end(); ++j )
- if ( pWndAncestor->IsWindowOrChild( *j, (*j)->IsSystemWindow() ) )
- return *j;
-
- return NULL;
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unusedcode.easy b/unusedcode.easy
index 5e6da87fbc10..12ecf86e81a8 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -349,7 +349,6 @@ ScHorizontalValueIterator::GetCurNumFmtInfo(short&, unsigned long&)
ScLeftFooterEditPage::GetRanges()
ScLeftHeaderEditPage::GetRanges()
ScMatrix::CalcOffset(unsigned long, unsigned long) const
-ScModule::Find1RefWindow(Window*)
ScMyCellInfo::ScMyCellInfo()
ScMyStyleRanges::SetStylesToRanges(ScRangeList*, rtl::OUString const*, short, rtl::OUString const*, ScXMLImport&)
ScMyStyleRanges::SetStylesToRanges(ScRangeListRef, rtl::OUString const*, short, rtl::OUString const*, ScXMLImport&)