summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-02-16 01:11:47 +0100
committerLuboš Luňák <l.lunak@collabora.com>2022-02-16 08:19:14 +0100
commit309f0f882b34c13d970677c2564f088c36c9691b (patch)
tree7da91a3982ef5ea948a424f1966df17fa199158e
parent30ba505ba549be4a509dd59c4c88a210ee01b539 (diff)
simplify code
Change-Id: I5e5c419f2888d0f305f6b83445c66c187f3e0e8d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129979 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
-rw-r--r--sc/source/core/tool/rangelst.cxx15
1 files changed, 1 insertions, 14 deletions
diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx
index ab6033dfa3de..4d6bf06f155d 100644
--- a/sc/source/core/tool/rangelst.cxx
+++ b/sc/source/core/tool/rangelst.cxx
@@ -49,19 +49,6 @@ private:
};
template<typename T>
-class FindRangeIn
-{
-public:
- FindRangeIn(const T& rTest) : mrTest(rTest) {}
- bool operator() (const ScRange& rRange) const
- {
- return mrTest.Contains(rRange);
- }
-private:
- const T& mrTest;
-};
-
-template<typename T>
class FindIntersectingRange
{
public:
@@ -967,7 +954,7 @@ bool ScRangeList::DeleteArea( SCCOL nCol1, SCROW nRow1, SCTAB nTab1,
ScRange aRange( nCol1, nRow1, nTab1, nCol2, nRow2, nTab2 );
for(size_t i = 0; i < maRanges.size();)
{
- if(FindRangeIn< ScRange >(aRange)(maRanges[i]))
+ if(aRange.Contains(maRanges[i]))
{
Remove(i);
bChanged = true;