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 | |
parent | This just can't be right, WriteByteString writes a pascal-style string (diff) | |
download | core-b57eceb231b61abc7121686d70df8d7c0dfacb75.tar.gz core-b57eceb231b61abc7121686d70df8d7c0dfacb75.zip |
callcatcher: remove unused Find1RefWindow variant
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/scmod.hxx | 1 | ||||
-rw-r--r-- | sc/source/ui/app/scmod.cxx | 16 |
2 files changed, 0 insertions, 17 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: */ |