diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-12-14 22:26:58 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-12-14 22:28:06 +0100 |
commit | 00438a182db9d0edcc2339c8a35a79280c60d1a5 (patch) | |
tree | c532cfd6f563e69ac45cb0489297c822b7b2857a /svtools | |
parent | 3a9e1e71d9a28b2c6bc96757e629b231d2276d9d (diff) |
Remove some newly tagged unused methods
Change-Id: I95d2c24ffefe6835c9505d149dc94847f1140b9c
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/inc/svtools/treelist.hxx | 4 | ||||
-rw-r--r-- | svtools/inc/svtools/viewdataentry.hxx | 1 | ||||
-rw-r--r-- | svtools/source/contnr/treelist.cxx | 29 | ||||
-rw-r--r-- | svtools/source/contnr/viewdataentry.cxx | 5 |
4 files changed, 0 insertions, 39 deletions
diff --git a/svtools/inc/svtools/treelist.hxx b/svtools/inc/svtools/treelist.hxx index c931f0ea9cfd..220b2f4c7f88 100644 --- a/svtools/inc/svtools/treelist.hxx +++ b/svtools/inc/svtools/treelist.hxx @@ -193,9 +193,6 @@ public: const SvTreeListEntries& GetChildList( SvTreeListEntry* pParent ) const; SvTreeListEntries& GetChildList( SvTreeListEntry* pParent ); - std::pair<SvTreeListEntries::const_iterator, SvTreeListEntries::const_iterator> - GetChildIterators(const SvTreeListEntry* pParent) const; - std::pair<SvTreeListEntries::iterator, SvTreeListEntries::iterator> GetChildIterators(SvTreeListEntry* pParent); @@ -341,7 +338,6 @@ public: sal_Bool IsExpanded( SvTreeListEntry* pEntry ) const; sal_Bool IsSelected( SvTreeListEntry* pEntry ) const; - sal_Bool HasEntryFocus( SvTreeListEntry* pEntry ) const; void SetEntryFocus( SvTreeListEntry* pEntry, sal_Bool bFocus ); const SvViewDataEntry* GetViewData( const SvTreeListEntry* pEntry ) const; SvViewDataEntry* GetViewData( SvTreeListEntry* pEntry ); diff --git a/svtools/inc/svtools/viewdataentry.hxx b/svtools/inc/svtools/viewdataentry.hxx index 9fc04084dbd0..3800b293fd2b 100644 --- a/svtools/inc/svtools/viewdataentry.hxx +++ b/svtools/inc/svtools/viewdataentry.hxx @@ -65,7 +65,6 @@ public: bool IsCursored() const; bool IsSelectable() const; void SetFocus( bool bFocus ); - void SetCursored( bool bCursored ); void SetSelected( bool bSelected ); void SetHighlighted( bool bHighlighted ); void SetExpanded( bool bExpanded ); diff --git a/svtools/source/contnr/treelist.cxx b/svtools/source/contnr/treelist.cxx index d0125f45efa5..90a03d290242 100644 --- a/svtools/source/contnr/treelist.cxx +++ b/svtools/source/contnr/treelist.cxx @@ -1118,27 +1118,6 @@ SvTreeListEntry* SvTreeList::GetRootLevelParent( SvTreeListEntry* pEntry ) const return pCurParent; } -std::pair<SvTreeListEntries::const_iterator, SvTreeListEntries::const_iterator> -SvTreeList::GetChildIterators(const SvTreeListEntry* pParent) const -{ - typedef std::pair<SvTreeListEntries::const_iterator, SvTreeListEntries::const_iterator> IteratorPair; - - static const SvTreeListEntries dummy; // prevent singular iterator asserts - IteratorPair aRet(dummy.begin(), dummy.end()); - - if (!pParent) - pParent = pRootItem; - - if (pParent->maChildren.empty()) - // This entry has no children. - return aRet; - - aRet.first = pParent->maChildren.begin(); - aRet.second = pParent->maChildren.end(); - - return aRet; -} - std::pair<SvTreeListEntries::iterator, SvTreeListEntries::iterator> SvTreeList::GetChildIterators(SvTreeListEntry* pParent) { @@ -1494,14 +1473,6 @@ sal_Bool SvListView::IsSelected( SvTreeListEntry* pEntry ) const return itr->second->IsSelected(); } -sal_Bool SvListView::HasEntryFocus( SvTreeListEntry* pEntry ) const -{ - DBG_ASSERT(pEntry,"IsExpanded:No Entry"); - SvDataTable::const_iterator itr = maDataTable.find(pEntry ); - DBG_ASSERT(itr != maDataTable.end(),"Entry not in Table"); - return itr->second->HasFocus(); -} - void SvListView::SetEntryFocus( SvTreeListEntry* pEntry, sal_Bool bFocus ) { DBG_ASSERT(pEntry,"SetEntryFocus:No Entry"); diff --git a/svtools/source/contnr/viewdataentry.cxx b/svtools/source/contnr/viewdataentry.cxx index c9c75f3f21ca..adf7b3151608 100644 --- a/svtools/source/contnr/viewdataentry.cxx +++ b/svtools/source/contnr/viewdataentry.cxx @@ -97,11 +97,6 @@ void SvViewDataEntry::SetFocus( bool bFocus ) mbFocused = bFocus; } -void SvViewDataEntry::SetCursored( bool bCursored ) -{ - mbCursored = bCursored; -} - void SvViewDataEntry::SetSelected( bool bSelected ) { mbSelected = bSelected; |