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>
This commit is contained in:
parent
d6365e5fb8
commit
71ff4b94e5
@ -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.
|
||||
*/
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user