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

New commits:
commit aa5754b27ce7871f21900f0d593096510a0ddb28
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Mon Mar 23 21:38:47 2015 +0100

    Unusedcode.easy: ScBroadcastAreaSlot::AreaBroadcastInRange
    
    Change-Id: If3f17ccea65a91199e4d8a0f8c0a241d07788f9c

diff --git a/sc/source/core/data/bcaslot.cxx b/sc/source/core/data/bcaslot.cxx
index f5ea8ad..767fb7b 100644
--- a/sc/source/core/data/bcaslot.cxx
+++ b/sc/source/core/data/bcaslot.cxx
@@ -412,57 +412,6 @@ bool ScBroadcastAreaSlot::AreaBroadcast( const ScHint& 
rHint)
     return bIsBroadcasted;
 }
 
-bool ScBroadcastAreaSlot::AreaBroadcastInRange( const ScRange& rRange,
-        const ScHint& rHint)
-{
-    if (aBroadcastAreaTbl.empty())
-        return false;
-    bool bInBroadcast = mbInBroadcastIteration;
-    mbInBroadcastIteration = true;
-    bool bIsBroadcasted = false;
-
-    mbHasErasedArea = false;
-
-    for (ScBroadcastAreas::const_iterator aIter( aBroadcastAreaTbl.begin()),
-            aIterEnd( aBroadcastAreaTbl.end()); aIter != aIterEnd; ++aIter )
-    {
-        if (mbHasErasedArea && isMarkedErased( aIter))
-            continue;
-
-        ScBroadcastArea* pArea = (*aIter).mpArea;
-        const ScRange& rAreaRange = pArea->GetRange();
-        if (rAreaRange.Intersects( rRange ))
-        {
-            if (pArea->IsGroupListening())
-            {
-                if (pBASM->IsInBulkBroadcast())
-                {
-                    pBASM->InsertBulkGroupArea(pArea, rRange);
-                }
-                else
-                {
-                    pArea->GetBroadcaster().Broadcast( rHint);
-                    bIsBroadcasted = true;
-                }
-            }
-            else if (!pBASM->IsInBulkBroadcast() || pBASM->InsertBulkArea( 
pArea))
-            {
-                pArea->GetBroadcaster().Broadcast( rHint);
-                bIsBroadcasted = true;
-            }
-        }
-    }
-
-    mbInBroadcastIteration = bInBroadcast;
-
-    // A Notify() during broadcast may call EndListeningArea() and thus dispose
-    // an area if it was the last listener, which would invalidate an iterator
-    // pointing to it, hence the real erase is done afterwards.
-    FinallyEraseAreas();
-
-    return bIsBroadcasted;
-}
-
 void ScBroadcastAreaSlot::DelBroadcastAreasInRange( const ScRange& rRange )
 {
     if (aBroadcastAreaTbl.empty())
diff --git a/sc/source/core/inc/bcaslot.hxx b/sc/source/core/inc/bcaslot.hxx
index 77bfe37..80b108e 100644
--- a/sc/source/core/inc/bcaslot.hxx
+++ b/sc/source/core/inc/bcaslot.hxx
@@ -218,9 +218,6 @@ public:
 
     bool AreaBroadcast( const ScRange& rRange, sal_uLong nHint );
     bool                AreaBroadcast( const ScHint& rHint );
-    /// @return true if at least one broadcast occurred.
-    bool                AreaBroadcastInRange( const ScRange& rRange,
-                                              const ScHint& rHint );
     void                DelBroadcastAreasInRange( const ScRange& rRange );
     void                UpdateRemove( UpdateRefMode eUpdateRefMode,
                                         const ScRange& rRange,
diff --git a/unusedcode.easy b/unusedcode.easy
index 99f7933..a0d4860 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*)
-ScBroadcastAreaSlot::AreaBroadcastInRange(ScRange const&, ScHint const&)
 ScCellValue::set(ScRefCellValue const&)
 ScCondFormatManagerDlg::IsInRefMode() const
 ScDocument::CreateFormatTable() const
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to