diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-26 09:01:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-26 10:23:55 +0100 |
commit | 66876a7117ece7902d546b35311c81762fe64ab9 (patch) | |
tree | 9155ad74a2ac266ff869545124fdb5dfbbc274ba /sfx2 | |
parent | ae9c5dc3711b6e37b97cb2974fb8322a65cf7869 (diff) |
callcatcher: some unused code
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/dinfdlg.hxx | 6 | ||||
-rw-r--r-- | sfx2/source/dialog/dinfdlg.cxx | 23 |
2 files changed, 0 insertions, 29 deletions
diff --git a/sfx2/inc/sfx2/dinfdlg.hxx b/sfx2/inc/sfx2/dinfdlg.hxx index a8e9a6654472..115a6dfe34c9 100644 --- a/sfx2/inc/sfx2/dinfdlg.hxx +++ b/sfx2/inc/sfx2/dinfdlg.hxx @@ -512,7 +512,6 @@ public: void ClearAllLines(); void DoScroll( sal_Int32 nNewPos ); - bool DoesCustomPropertyExist( const String& rName ) const; ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > GetCustomProperties() const; void SetRemovedHdl( const Link& rLink ) { m_aRemovedHdl = rLink; } @@ -527,11 +526,8 @@ private: CustomPropertiesWindow m_aPropertiesWin; ScrollBar m_aVertScroll; - bool m_bIsInitialized; sal_Int32 m_nThumbPos; - void Initialize(); - DECL_LINK( ScrollHdl, ScrollBar* ); DECL_LINK( RemovedHdl, void* ); @@ -543,8 +539,6 @@ public: inline bool AreAllLinesValid() const { return m_aPropertiesWin.AreAllLinesValid(); } inline void ClearAllLines() { m_aPropertiesWin.ClearAllLines(); } - inline bool DoesCustomPropertyExist( const String& rName ) const - { return m_aPropertiesWin.DoesCustomPropertyExist( rName ); } inline ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > GetCustomProperties() const { return m_aPropertiesWin.GetCustomProperties(); } diff --git a/sfx2/source/dialog/dinfdlg.cxx b/sfx2/source/dialog/dinfdlg.cxx index a69a84490df4..76d512bc8114 100644 --- a/sfx2/source/dialog/dinfdlg.cxx +++ b/sfx2/source/dialog/dinfdlg.cxx @@ -2241,24 +2241,6 @@ void CustomPropertiesWindow::DoScroll( sal_Int32 nNewPos ) } } -bool CustomPropertiesWindow::DoesCustomPropertyExist( const String& rName ) const -{ - bool bRet = false; - std::vector< CustomPropertyLine* >::const_iterator pIter; - for ( pIter = m_aCustomPropertiesLines.begin(); - pIter != m_aCustomPropertiesLines.end(); ++pIter ) - { - CustomPropertyLine* pLine = *pIter; - if ( !pLine->m_bIsRemoved && pLine->m_aNameBox.GetText() == rName ) - { - bRet = true; - break; - } - } - - return bRet; -} - Sequence< beans::PropertyValue > CustomPropertiesWindow::GetCustomProperties() const { Sequence< beans::PropertyValue > aPropertiesSeq( m_aCustomPropertiesLines.size() ); @@ -2332,7 +2314,6 @@ CustomPropertiesControl::CustomPropertiesControl( Window* pParent, const ResId& m_aPropertiesWin( this, ResId( WIN_PROPERTIES, *rResId.GetResMgr() ) ), m_aVertScroll ( this, ResId( SB_VERTICAL, *rResId.GetResMgr() ) ), - m_bIsInitialized( false ), m_nThumbPos ( 0 ) { @@ -2377,10 +2358,6 @@ CustomPropertiesControl::~CustomPropertiesControl() { } -void CustomPropertiesControl::Initialize() -{ -} - IMPL_LINK( CustomPropertiesControl, ScrollHdl, ScrollBar*, pScrollBar ) { sal_Int32 nOffset = m_aPropertiesWin.GetLineHeight(); |