Kaydet (Commit) 810a01c5 authored tarafından Caolán McNamara's avatar Caolán McNamara

callcatcher: remove some more unused code

Change-Id: Id60fe0dade7f47f8b2b65bf2cfa1d6ab28a94505
üst 4e46ab16
......@@ -214,7 +214,6 @@ public:
const ScDBData* findByRange(const ScRange& rRange) const;
ScDBData* getByRange(const ScRange& rRange);
void insert(ScDBData* p);
void erase(iterator itr);
bool empty() const;
bool operator== (const AnonDBs& r) const;
};
......
......@@ -55,8 +55,6 @@ public:
SCCOL mnCol2;
SCROW mnRow2;
explicit Range(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2);
bool contains(const Range& r) const;
};
typedef ::boost::shared_ptr< ::std::list<Range> > RangeListRef;
typedef ::std::map<SCTAB, RangeListRef> TabType;
......@@ -65,7 +63,6 @@ public:
void addRange(const ScRange& rRange);
void insertCol(SCCOL nCol, SCTAB nTab);
void insertRow(SCROW nRow, SCTAB nTab);
void getRangeList(::std::list<ScRange>& rList) const;
void clear();
......
......@@ -816,11 +816,6 @@ void ScDBCollection::AnonDBs::insert(ScDBData* p)
maDBs.push_back(pNew);
}
void ScDBCollection::AnonDBs::erase(iterator itr)
{
maDBs.erase(itr);
}
bool ScDBCollection::AnonDBs::empty() const
{
return maDBs.empty();
......
......@@ -38,11 +38,6 @@ using ::std::max;
ScSimpleRangeList::Range::Range(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) :
mnCol1(nCol1), mnRow1(nRow1), mnCol2(nCol2), mnRow2(nRow2) {}
bool ScSimpleRangeList::Range::contains(const Range& r) const
{
return mnCol1 <= r.mnCol1 && mnRow1 <= r.mnRow1 && r.mnCol2 <= mnCol2 && r.mnRow2 <= mnRow2;
}
// ----------------------------------------------------------------------------
ScSimpleRangeList::ScSimpleRangeList()
......@@ -168,35 +163,6 @@ void ScSimpleRangeList::insertCol(SCCOL nCol, SCTAB nTab)
}
}
void ScSimpleRangeList::insertRow(SCROW nRow, SCTAB nTab)
{
RangeListRef pRef = findTab(nTab);
if (!pRef)
// This should never happen!
return;
list<Range>::iterator itr = pRef->begin(), itrEnd = pRef->end();
for (; itr != itrEnd; ++itr)
{
Range& r = *itr;
if (r.mnRow2 < nRow)
// insertion point is below the range.
continue;
if (nRow <= r.mnRow1)
{
// insertion point is above the range.
++r.mnRow1;
++r.mnRow2;
}
else if (nRow <= r.mnRow2)
{
// insertion point cuts through the range.
++r.mnRow2;
}
}
}
void ScSimpleRangeList::getRangeList(list<ScRange>& rList) const
{
list<ScRange> aList;
......
......@@ -34,8 +34,6 @@ ScCompressedArray<int, unsigned short>::Remove(int, unsigned long)
ScCompressedArray<int, unsigned short>::ScCompressedArray(int, unsigned short const&, unsigned long)
ScCompressedArray<int, unsigned short>::ScCompressedArray(int, unsigned short const*, unsigned long)
ScCompressedArray<int, unsigned short>::SetValue(int, unsigned short const&)
ScCondFrmtItem::ScCondFrmtItem(unsigned short, ScConditionalFormat const&)
ScDBCollection::AnonDBs::erase(boost::void_ptr_iterator<__gnu_debug::_Safe_iterator<__gnu_cxx::__normal_iterator<void**, std::__cxx1998::vector<void*, std::allocator<void*> > >, std::__debug::vector<void*, std::allocator<void*> > >, ScDBData>)
ScHTMLColOffset::Insert(ScHTMLColOffset const*, unsigned short, unsigned short)
ScHTMLColOffset::Insert(unsigned long const&, unsigned short&)
ScHTMLColOffset::Insert(unsigned long const*, unsigned short)
......@@ -50,7 +48,6 @@ ScRTFColTwips::Remove(unsigned long const&, unsigned short)
ScRTFColTwips_SAR::Replace(unsigned long const&, unsigned short)
ScRTFColTwips_SAR::Replace(unsigned long const*, unsigned short, unsigned short)
ScRTFColTwips_SAR::_ForEach(unsigned short, unsigned short, unsigned char (*)(unsigned long const&, void*), void*)
ScSimpleRangeList::Range::contains(ScSimpleRangeList::Range const&) const
ScValidationEntries_Impl::Insert(ScValidationData* const&, unsigned short&)
ScValidationEntries_Impl::Insert(ScValidationData* const*, unsigned short)
ScValidationEntries_Impl::Insert(ScValidationEntries_Impl const*, unsigned short, unsigned short)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment