From 9ca6491bb701919a3f88fa7c43da284b13822ed6 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Wed, 12 Sep 2012 17:56:29 -0700 Subject: [PATCH] Region::validate() cannot be called from addRectUnchecked() addRectUnchecked() is allowed to be in an invalid state temporarily. Change-Id: I6f5162b5c49f378978c070a77abba35023fe918c --- libs/ui/Region.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libs/ui/Region.cpp b/libs/ui/Region.cpp index db69e16d8..932ef685a 100644 --- a/libs/ui/Region.cpp +++ b/libs/ui/Region.cpp @@ -114,10 +114,6 @@ void Region::addRectUnchecked(int l, int t, int r, int b) Rect rect(l,t,r,b); size_t where = mStorage.size() - 1; mStorage.insertAt(rect, where, 1); - -#if VALIDATE_REGIONS - validate(*this, "addRectUnchecked"); -#endif } // ----------------------------------------------------------------------------