fix: removed unused code path
This commit is contained in:
parent
d7884692c5
commit
d1eb5f5b91
|
|
@ -35,15 +35,6 @@ CellIterator &CellIterator::operator++() {
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
CellIterator &CellIterator::operator--() {
|
|
||||||
--(this->state.x);
|
|
||||||
if (this->state.x == this->begin.x) {
|
|
||||||
this->state.x = this->end.x - 1;
|
|
||||||
this->state.y = SDL_max(this->state.y - 1, this->begin.y);
|
|
||||||
}
|
|
||||||
return *this;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool CellIterator::operator==(CellIterator const &src) const {
|
bool CellIterator::operator==(CellIterator const &src) const {
|
||||||
return src.begin == this->begin && src.end == this->end && (src.state == this->state || src.at_end() == this->at_end());
|
return src.begin == this->begin && src.end == this->end && (src.state == this->state || src.at_end() == this->at_end());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
#include <SDL3/SDL_rect.h>
|
#include <SDL3/SDL_rect.h>
|
||||||
#include <SDL3/SDL_render.h>
|
#include <SDL3/SDL_render.h>
|
||||||
#include <clay/clay.h>
|
#include <clay/clay.h>
|
||||||
#include <set>
|
|
||||||
|
|
||||||
namespace simulation {
|
namespace simulation {
|
||||||
struct Cell {
|
struct Cell {
|
||||||
|
|
@ -16,7 +15,6 @@ class CellIterator {
|
||||||
friend class CellRange;
|
friend class CellRange;
|
||||||
public: CellIterator(Cell begin, Cell end);
|
public: CellIterator(Cell begin, Cell end);
|
||||||
CellIterator &operator++();
|
CellIterator &operator++();
|
||||||
CellIterator &operator--();
|
|
||||||
CellIterator &operator=(CellIterator const &src);
|
CellIterator &operator=(CellIterator const &src);
|
||||||
bool operator==(CellIterator const &src) const;
|
bool operator==(CellIterator const &src) const;
|
||||||
bool operator!=(CellIterator const &src) const;
|
bool operator!=(CellIterator const &src) const;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue