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

Julien Nabet serval2412 at yahoo.fr
Sun Mar 1 05:04:11 PST 2015


 sc/source/core/data/bcaslot.cxx |   24 ------------------------
 sc/source/core/inc/bcaslot.hxx  |    1 -
 unusedcode.easy                 |    1 -
 3 files changed, 26 deletions(-)

New commits:
commit 3cd728f92c76d747cca7c8ed1d81294d3d0e9e2f
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Mar 1 13:55:41 2015 +0100

    unusedcode.easy: remove ScBroadcastAreaSlotMachine::AreaBroadcastInRange
    
    Change-Id: Ic9f2348d88be4da08ddb3fc01d7e68d22d478b98

diff --git a/sc/source/core/data/bcaslot.cxx b/sc/source/core/data/bcaslot.cxx
index effbc39..f5ea8ad 100644
--- a/sc/source/core/data/bcaslot.cxx
+++ b/sc/source/core/data/bcaslot.cxx
@@ -946,30 +946,6 @@ bool ScBroadcastAreaSlotMachine::AreaBroadcast( const ScHint& rHint ) const
     }
 }
 
-bool ScBroadcastAreaSlotMachine::AreaBroadcastInRange( const ScRange& rRange,
-        const ScHint& rHint ) const
-{
-    bool bBroadcasted = false;
-    SCTAB nEndTab = rRange.aEnd.Tab();
-    for (TableSlotsMap::const_iterator iTab( aTableSlotsMap.lower_bound( rRange.aStart.Tab()));
-            iTab != aTableSlotsMap.end() && (*iTab).first <= nEndTab; ++iTab)
-    {
-        ScBroadcastAreaSlot** ppSlots = (*iTab).second->getSlots();
-        SCSIZE nStart, nEnd, nRowBreak;
-        ComputeAreaPoints( rRange, nStart, nEnd, nRowBreak );
-        SCSIZE nOff = nStart;
-        SCSIZE nBreak = nOff + nRowBreak;
-        ScBroadcastAreaSlot** pp = ppSlots + nOff;
-        while ( nOff <= nEnd )
-        {
-            if ( *pp )
-                bBroadcasted |= (*pp)->AreaBroadcastInRange( rRange, rHint );
-            ComputeNextSlot( nOff, nBreak, pp, nStart, ppSlots, nRowBreak);
-        }
-    }
-    return bBroadcasted;
-}
-
 void ScBroadcastAreaSlotMachine::DelBroadcastAreasInRange(
         const ScRange& rRange )
 {
diff --git a/sc/source/core/inc/bcaslot.hxx b/sc/source/core/inc/bcaslot.hxx
index 144d2d7..77bfe37 100644
--- a/sc/source/core/inc/bcaslot.hxx
+++ b/sc/source/core/inc/bcaslot.hxx
@@ -321,7 +321,6 @@ public:
     bool AreaBroadcast( const ScRange& rRange, sal_uLong nHint );
     bool                AreaBroadcast( const ScHint& rHint ) const;
         // return: at least one broadcast occurred
-    bool                AreaBroadcastInRange( const ScRange& rRange, const ScHint& rHint ) const;
     void                DelBroadcastAreasInRange( const ScRange& rRange );
     void                UpdateBroadcastAreas( UpdateRefMode eUpdateRefMode,
                                             const ScRange& rRange,
diff --git a/unusedcode.easy b/unusedcode.easy
index 72884d2..68341cb 100644
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -19,7 +19,6 @@ Primitive2dXmlDump::filterActionType(unsigned short, bool)
 Primitive2dXmlDump::filterAllActionTypes()
 Printer::Error()
 SalGraphics::drawTransformedBitmap(basegfx::B2DPoint const&, basegfx::B2DPoint const&, basegfx::B2DPoint const&, SalBitmap const&, SalBitmap const*)
-ScBroadcastAreaSlotMachine::AreaBroadcastInRange(ScRange const&, ScHint const&) const
 ScCellValue::set(ScRefCellValue const&)
 ScCondFormatManagerDlg::IsInRefMode() const
 ScDocument::CreateFormatTable() const


More information about the Libreoffice-commits mailing list