Skip to content
Snippets Groups Projects
Commit 49fb11f1 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm unused operator

parent d62f32ff
No related branches found
No related tags found
1 merge request!451various little improvements as suggested by clang-tidy
......@@ -64,13 +64,6 @@ SimulationAreaIterator& SimulationAreaIterator::operator++()
return *this;
}
SimulationAreaIterator SimulationAreaIterator::operator++(int)
{
SimulationAreaIterator result(*this);
this->operator++();
return result;
}
size_t SimulationAreaIterator::nextIndex(size_t currentIndex)
{
// #baROI + this can be optimized: Check whether a RegionOfInterest is present, then do not
......
......@@ -58,9 +58,6 @@ public:
//! prefix increment
SimulationAreaIterator& operator++();
//! postfix increment
SimulationAreaIterator operator++(int);
private:
size_t nextIndex(size_t currentIndex);
......
......@@ -32,14 +32,6 @@ TEST_F(SimulationAreaTest, iteratorOperations)
EXPECT_TRUE(it == it_begin);
EXPECT_FALSE(it != it_begin);
// increment
it++;
EXPECT_EQ(it.roiIndex(), 1u);
EXPECT_TRUE(it != it_begin);
EXPECT_FALSE(it == it_begin);
++it;
EXPECT_EQ(it.roiIndex(), 2u);
// incrementing well behind the end
for (size_t i = 0; i < 100; ++i)
++it;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment