[Libreoffice-commits] core.git: sc/source sfx2/inc sfx2/source unusedcode.easy

Julien Nabet serval2412 at yahoo.fr
Sat Mar 9 04:10:59 PST 2013


 sc/source/filter/excel/xepivot.cxx    |    9 ---------
 sc/source/filter/inc/xepivot.hxx      |    2 --
 sfx2/inc/sfx2/thumbnailview.hxx       |    2 --
 sfx2/source/control/thumbnailview.cxx |   18 ------------------
 unusedcode.easy                       |    2 --
 5 files changed, 33 deletions(-)

New commits:
commit b68f14a7cabd535dc044715bad4f1f6347450ffe
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sat Mar 9 13:07:51 2013 +0100

    Remove unused functions (callcatcher)
    
    ThumbnailView::deselectItem(unsigned short)
    XclExpPivotCache::GetFieldAcc(rtl::OUString const&)
    
    Change-Id: I88d79c7c1eede9544a4232e467a54629e4976798

diff --git a/sc/source/filter/excel/xepivot.cxx b/sc/source/filter/excel/xepivot.cxx
index 85fa8fa..3402fbc 100644
--- a/sc/source/filter/excel/xepivot.cxx
+++ b/sc/source/filter/excel/xepivot.cxx
@@ -777,15 +777,6 @@ XclExpPCField* XclExpPivotCache::GetFieldAcc( sal_uInt16 nFieldIdx )
     return maFieldList.GetRecord( nFieldIdx ).get();
 }
 
-XclExpPCField* XclExpPivotCache::GetFieldAcc( const rtl::OUString& rFieldName )
-{
-    XclExpPCField* pField = 0;
-    for( size_t nPos = 0, nSize = maFieldList.GetSize(); !pField && (nPos < nSize); ++nPos )
-        if( maFieldList.GetRecord( nPos )->GetFieldName() == rFieldName )
-            pField = maFieldList.GetRecord( nPos ).get();
-    return pField;
-}
-
 void XclExpPivotCache::AddFields( const ScDPObject& rDPObj )
 {
     AddStdFields( rDPObj );
diff --git a/sc/source/filter/inc/xepivot.hxx b/sc/source/filter/inc/xepivot.hxx
index 41965c2..080eab7 100644
--- a/sc/source/filter/inc/xepivot.hxx
+++ b/sc/source/filter/inc/xepivot.hxx
@@ -199,8 +199,6 @@ public:
 private:
     /** Returns read/write access to a pivot cache field. */
     XclExpPCField*      GetFieldAcc( sal_uInt16 nFieldIdx );
-    /** Returns read/write access to a pivot cache field. */
-    XclExpPCField*      GetFieldAcc( const rtl::OUString& rFieldName );
 
     /** Adds all pivot cache fields. */
     void                AddFields( const ScDPObject& rDPObj );
diff --git a/sfx2/inc/sfx2/thumbnailview.hxx b/sfx2/inc/sfx2/thumbnailview.hxx
index b3459ee..a299e7b 100644
--- a/sfx2/inc/sfx2/thumbnailview.hxx
+++ b/sfx2/inc/sfx2/thumbnailview.hxx
@@ -207,8 +207,6 @@ public:
     bool IsItemSelected( sal_uInt16 nItemId ) const
         { return nItemId == mnSelItemId; }
 
-    void deselectItem (const sal_uInt16 nItemId);
-
     /**
      *
      * @brief deselect all current selected items.
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx
index a1ff4d3..78f8e32 100644
--- a/sfx2/source/control/thumbnailview.cxx
+++ b/sfx2/source/control/thumbnailview.cxx
@@ -857,24 +857,6 @@ void ThumbnailView::SelectItem( sal_uInt16 nItemId )
     }
 }
 
-void ThumbnailView::deselectItem(const sal_uInt16 nItemId)
-{
-    for (size_t i = 0, n = mItemList.size(); i < n; ++i)
-    {
-        if (mItemList[i]->mnId == nItemId)
-        {
-            mItemList[i]->setSelection(false);
-
-            maItemStateHdl.Call(mItemList[i]);
-
-            if (IsReallyVisible() && IsUpdateMode())
-                mItemList[i]->Paint(mpProcessor,mpItemAttrs);
-
-            break;
-        }
-    }
-}
-
 void ThumbnailView::deselectItems()
 {
     for (size_t i = 0, n = mItemList.size(); i < n; ++i)
diff --git a/unusedcode.easy b/unusedcode.easy
index 89b49ba..6da3dee 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -10,8 +10,6 @@ ScDocument::GetEditText(ScAddress const&) const
 ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
 ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&)
 TextEngine::GetLeftMargin() const
-ThumbnailView::deselectItem(unsigned short)
-XclExpPivotCache::GetFieldAcc(rtl::OUString const&)
 apitest::XCellRangesQuery::testQueryFormulaCells()
 apitest::XDataPilotDescriptor::testGetHiddenFields()
 apitest::XDataPilotFieldGrouping::testCreateDateGroup()


More information about the Libreoffice-commits mailing list