Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ca6491b authored by Mathias Agopian's avatar Mathias Agopian
Browse files

Region::validate() cannot be called from addRectUnchecked()

addRectUnchecked() is allowed to be in an invalid state
temporarily.

Change-Id: I6f5162b5c49f378978c070a77abba35023fe918c
parent 8df840aa
Loading
Loading
Loading
Loading
+0 −4
Original line number Original line Diff line number Diff line
@@ -114,10 +114,6 @@ void Region::addRectUnchecked(int l, int t, int r, int b)
    Rect rect(l,t,r,b);
    Rect rect(l,t,r,b);
    size_t where = mStorage.size() - 1;
    size_t where = mStorage.size() - 1;
    mStorage.insertAt(rect, where, 1);
    mStorage.insertAt(rect, where, 1);

#if VALIDATE_REGIONS
    validate(*this, "addRectUnchecked");
#endif
}
}


// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------