[Libreoffice-commits] core.git: sc/source

Tor Lillqvist tml at collabora.com
Tue Feb 11 22:57:44 PST 2014


 sc/source/core/data/column2.cxx |   10 ----------
 1 file changed, 10 deletions(-)

New commits:
commit 4e432a178f231bb5147c75dff36687407bb9af43
Author: Tor Lillqvist <tml at collabora.com>
Date:   Wed Feb 12 08:54:45 2014 +0200

    WaE: unused function 'hasNonEmpty'
    
    Change-Id: I8a806caf50df76687a339f583ce57d244553240d

diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 2c3e58a..6390979 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -2558,16 +2558,6 @@ struct NonNullStringFinder : std::unary_function<const rtl_uString*, bool>
     bool operator() (const rtl_uString* p) const { return p != NULL; }
 };
 
-bool hasNonEmpty( const sc::FormulaGroupContext::NumArrayType& rArray, SCROW nRow1, SCROW nRow2 )
-{
-    // The caller has to make sure the array is at least nRow2+1 long.
-    sc::FormulaGroupContext::NumArrayType::const_iterator it = rArray.begin();
-    std::advance(it, nRow1);
-    sc::FormulaGroupContext::NumArrayType::const_iterator itEnd = it;
-    std::advance(itEnd, nRow2-nRow1+1);
-    return std::find_if(it, itEnd, FiniteValueFinder()) != itEnd;
-}
-
 bool hasNonEmpty( const sc::FormulaGroupContext::StrArrayType& rArray, SCROW nRow1, SCROW nRow2 )
 {
     // The caller has to make sure the array is at least nRow2+1 long.


More information about the Libreoffice-commits mailing list