diff options
author | Cary Clark <caryclark@skia.org> | 2017-10-16 08:18:11 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-10-16 14:30:44 +0000 |
commit | 71ff4b94e5538ef3c1e87c1b1b5da447fc8b50e3 (patch) | |
tree | 2083a60997dd878c3da5e66d745ce75e4384c4b0 | |
parent | d6365e5fb8746d31b564d757297197df5b02a3d0 (diff) |
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>
-rw-r--r-- | include/core/SkMatrix.h | 5 | ||||
-rw-r--r-- | src/core/SkMatrix.cpp | 8 |
2 files changed, 0 insertions, 13 deletions
diff --git a/include/core/SkMatrix.h b/include/core/SkMatrix.h index 6e9f421264..277473790a 100644 --- a/include/core/SkMatrix.h +++ b/include/core/SkMatrix.h @@ -232,11 +232,6 @@ public: /** 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 0ed9565fb9..9be11d54d9 100644 --- a/src/core/SkMatrix.cpp +++ b/src/core/SkMatrix.cpp @@ -341,14 +341,6 @@ void SkMatrix::setScale(SkScalar sx, SkScalar sy) { } } -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; |