remove unused SkMatrix setIDiv
Unused setIDiv, untested internally.
Unused by google3, android, chromium.
R: reed@google.com
Bug: skia: 6898
Change-Id: I57101b147272ed198746afc298cc0f5a6434abe0
Reviewed-on: https://skia-review.googlesource.com/59960
Commit-Queue: Cary Clark <caryclark@google.com>
Reviewed-by: Mike Reed <reed@google.com>
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h
index 6e9f421..2774737 100644
--- a/include/core/SkMatrix.h
+++ b/include/core/SkMatrix.h
@@ -232,11 +232,6 @@
/** Set the matrix to scale by 1/divx and 1/divy. Returns false and doesn't
touch the matrix if either divx or divy is zero.
*/
- bool setIDiv(int divx, int divy);
- /** Set the matrix to rotate by the specified number of degrees, with a
- pivot point at (px, py). The pivot point is the coordinate that should
- remain unchanged by the specified transformation.
- */
void setRotate(SkScalar degrees, SkScalar px, SkScalar py);
/** Set the matrix to rotate about (0,0) by the specified number of degrees.
*/
diff --git a/src/core/SkMatrix.cpp b/src/core/SkMatrix.cpp
index 0ed9565..9be11d5 100644
--- a/src/core/SkMatrix.cpp
+++ b/src/core/SkMatrix.cpp
@@ -341,14 +341,6 @@
}
}
-bool SkMatrix::setIDiv(int divx, int divy) {
- if (!divx || !divy) {
- return false;
- }
- this->setScale(SkScalarInvert(divx), SkScalarInvert(divy));
- return true;
-}
-
void SkMatrix::preScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py) {
if (1 == sx && 1 == sy) {
return;