Skip to content

Commit 7f1d895

Browse files
committed
Clean Shape::is_rectangle() method
1 parent 7b43a1a commit 7f1d895

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/irregular/shape.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -441,11 +441,6 @@ bool Shape::is_rectangle() const
441441
it_prev = it;
442442
}
443443
return true;
444-
if (!equal(elements[0].length(), elements[2].length()))
445-
return false;
446-
if (!equal(elements[1].length(), elements[3].length()))
447-
return false;
448-
return true;
449444
}
450445

451446
bool Shape::is_polygon() const

0 commit comments

Comments
 (0)