From 8e86a7aba5003a620bb130b8ab7b444dacf6da9f Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Thu, 28 Apr 2011 19:50:21 -0700 Subject: get rid of dependency on copybit HAL module Change-Id: Ia608099a2426c11a91d33063ba53c93e1eccb428 --- include/ui/Region.h | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'include/ui/Region.h') diff --git a/include/ui/Region.h b/include/ui/Region.h index 925fd0620d60..6c9a6203e793 100644 --- a/include/ui/Region.h +++ b/include/ui/Region.h @@ -24,8 +24,6 @@ #include -#include - namespace android { // --------------------------------------------------------------------------- @@ -183,27 +181,6 @@ Region& Region::operator -= (const Region& rhs) { Region& Region::operator += (const Point& pt) { return translateSelf(pt.x, pt.y); } - -// --------------------------------------------------------------------------- - -struct region_iterator : public copybit_region_t { - region_iterator(const Region& region) - : b(region.begin()), e(region.end()) { - this->next = iterate; - } -private: - static int iterate(copybit_region_t const * self, copybit_rect_t* rect) { - region_iterator const* me = static_cast(self); - if (me->b != me->e) { - *reinterpret_cast(rect) = *me->b++; - return 1; - } - return 0; - } - mutable Region::const_iterator b; - Region::const_iterator const e; -}; - // --------------------------------------------------------------------------- }; // namespace android -- cgit v1.2.3-59-g8ed1b