diff --git a/server/src/main/java/org/elasticsearch/common/geo/Extent.java b/server/src/main/java/org/elasticsearch/common/geo/Extent.java index 2c3eef24367a5..0ed29cbe567df 100644 --- a/server/src/main/java/org/elasticsearch/common/geo/Extent.java +++ b/server/src/main/java/org/elasticsearch/common/geo/Extent.java @@ -29,8 +29,6 @@ * Object representing the extent of a geometry object within a {@link ShapeTreeWriter}. */ public class Extent implements Writeable { - static final int WRITEABLE_SIZE_IN_BYTES = 24; - public int top; public int bottom; public int negLeft; @@ -79,8 +77,6 @@ public void reset(int top, int bottom, int negLeft, int negRight, int posLeft, i * @param topRightY the top-right y-coordinate */ public void addRectangle(int bottomLeftX, int bottomLeftY, int topRightX, int topRightY) { - assert bottomLeftX <= topRightX; - assert bottomLeftY <= topRightY; this.bottom = Math.min(this.bottom, bottomLeftY); this.top = Math.max(this.top, topRightY); if (bottomLeftX < 0 && topRightX < 0) {