[Libreoffice-commits] .: svtools/inc svtools/source unusedcode.easy

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Dec 14 13:29:41 PST 2012


 svtools/inc/svtools/treelist.hxx        |    4 ----
 svtools/inc/svtools/viewdataentry.hxx   |    1 -
 svtools/source/contnr/treelist.cxx      |   29 -----------------------------
 svtools/source/contnr/viewdataentry.cxx |    5 -----
 unusedcode.easy                         |    3 ---
 5 files changed, 42 deletions(-)

New commits:
commit 00438a182db9d0edcc2339c8a35a79280c60d1a5
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Dec 14 22:26:58 2012 +0100

    Remove some newly tagged unused methods
    
    Change-Id: I95d2c24ffefe6835c9505d149dc94847f1140b9c

diff --git a/svtools/inc/svtools/treelist.hxx b/svtools/inc/svtools/treelist.hxx
index c931f0e..220b2f4 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 9fc0408..3800b29 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 d0125f4..90a03d2 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 c9c75f3..adf7b31 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;
diff --git a/unusedcode.easy b/unusedcode.easy
index 6b829c4..c6815be 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -11,9 +11,6 @@ ScMenuFloatingWindow::getDoc()
 ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
 ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&)
 SfxDocumentTemplateDlg::SfxDocumentTemplateDlg(Window*, SfxDocumentTemplates*)
-SvListView::HasEntryFocus(SvTreeListEntry*) const
-SvTreeList::GetChildIterators(SvTreeListEntry const*) const
-SvViewDataEntry::SetCursored(bool)
 TextEngine::GetLeftMargin() const
 ThumbnailView::GetScrollWidth() const
 ThumbnailViewItemAcc::FireAccessibleEvent(short, com::sun::star::uno::Any const&, com::sun::star::uno::Any const&)


More information about the Libreoffice-commits mailing list