Index: src/core/SkLatticeIter.cpp |
diff --git a/src/core/SkLatticeIter.cpp b/src/core/SkLatticeIter.cpp |
index ba6ac97a5b4395807a22c482b05e95ccc985eb0c..24ab3f1cbc29a11af6ded16de3965c93ac76b292 100644 |
--- a/src/core/SkLatticeIter.cpp |
+++ b/src/core/SkLatticeIter.cpp |
@@ -159,7 +159,6 @@ |
fCurrX = fCurrY = 0; |
fDone = false; |
- fNumRects = (xCount + 1) * (yCount + 1); |
} |
bool SkLatticeIter::Valid(int width, int height, const SkIRect& center) { |
@@ -206,7 +205,6 @@ |
fCurrX = fCurrY = 0; |
fDone = false; |
- fNumRects = 9; |
} |
bool SkLatticeIter::next(SkRect* src, SkRect* dst) { |
@@ -230,18 +228,3 @@ |
} |
return true; |
} |
- |
-void SkLatticeIter::mapDstScaleTranslate(const SkMatrix& matrix) { |
- SkASSERT(matrix.isScaleTranslate()); |
- SkScalar tx = matrix.getTranslateX(); |
- SkScalar sx = matrix.getScaleX(); |
- for (int i = 0; i < fDstX.count(); i++) { |
- fDstX[i] = fDstX[i] * sx + tx; |
- } |
- |
- SkScalar ty = matrix.getTranslateY(); |
- SkScalar sy = matrix.getScaleY(); |
- for (int i = 0; i < fDstY.count(); i++) { |
- fDstY[i] = fDstY[i] * sy + ty; |
- } |
-} |