Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1883)

Unified Diff: Source/platform/geometry/Region.cpp

Issue 857973002: Removing Unused method Region::totalArea() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/geometry/Region.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/geometry/Region.cpp
diff --git a/Source/platform/geometry/Region.cpp b/Source/platform/geometry/Region.cpp
index c21e6bcf6c626b0353260cbab803f4b634cd9411..b9f4490fc05605f34fe24f767f1d60958da69426 100644
--- a/Source/platform/geometry/Region.cpp
+++ b/Source/platform/geometry/Region.cpp
@@ -109,20 +109,6 @@ bool Region::intersects(const Region& region) const
return Shape::compareShapes<Shape::CompareIntersectsOperation>(m_shape, region.m_shape);
}
-unsigned Region::totalArea() const
-{
- Vector<IntRect> rects = this->rects();
- size_t size = rects.size();
- unsigned totalArea = 0;
-
- for (size_t i = 0; i < size; ++i) {
- IntRect rect = rects[i];
- totalArea += (rect.width() * rect.height());
- }
-
- return totalArea;
-}
-
template<typename CompareOperation>
bool Region::Shape::compareShapes(const Shape& aShape, const Shape& bShape)
{
« no previous file with comments | « Source/platform/geometry/Region.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698