diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-16 17:15:06 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-21 10:10:56 +0000 |
commit | b57eceb231b61abc7121686d70df8d7c0dfacb75 (patch) | |
tree | 0be1785e43e563d09ff1fff1154188fb4fb5839b /sc/source | |
parent | 4eb4514ee1690b43c8abf091a8ee4591383388da (diff) |
callcatcher: remove unused Find1RefWindow variant
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
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: */ |