SkPDF: remove unused function
Change-Id: Ic5c23ec231acad43ee49eb7854373d7be090c101 Reviewed-on: https://skia-review.googlesource.com/157180 Commit-Queue: Ben Wagner <bungeman@google.com> Auto-Submit: Hal Canary <halcanary@google.com> Reviewed-by: Ben Wagner <bungeman@google.com>
This commit is contained in:
parent
b5b7279349
commit
805fe3b83d
@ -222,28 +222,6 @@ static bool calculate_inverse_path(const SkRect& bounds, const SkPath& invPath,
|
||||
return Op(clipPath, invPath, kIntersect_SkPathOp, outPath);
|
||||
}
|
||||
|
||||
bool apply_clip(SkClipOp op, const SkPath& u, const SkPath& v, SkPath* r) {
|
||||
switch (op) {
|
||||
case SkClipOp::kDifference:
|
||||
return Op(u, v, kDifference_SkPathOp, r);
|
||||
case SkClipOp::kIntersect:
|
||||
return Op(u, v, kIntersect_SkPathOp, r);
|
||||
#ifdef SK_SUPPORT_DEPRECATED_CLIPOPS
|
||||
case SkClipOp::kUnion_deprecated:
|
||||
return Op(u, v, kUnion_SkPathOp, r);
|
||||
case SkClipOp::kXOR_deprecated:
|
||||
return Op(u, v, kXOR_SkPathOp, r);
|
||||
case SkClipOp::kReverseDifference_deprecated:
|
||||
return Op(u, v, kReverseDifference_SkPathOp, r);
|
||||
case SkClipOp::kReplace_deprecated:
|
||||
*r = v;
|
||||
return true;
|
||||
#endif
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
static SkRect rect_intersect(SkRect u, SkRect v) {
|
||||
if (u.isEmpty() || v.isEmpty()) { return {0, 0, 0, 0}; }
|
||||
return u.intersect(v) ? u : SkRect{0, 0, 0, 0};
|
||||
|
Loading…
Reference in New Issue
Block a user