From 99885411aef986f3de863e144a589adb6d7ecd0d Mon Sep 17 00:00:00 2001 From: Cary Clark Date: Thu, 5 Apr 2018 13:09:58 -0400 Subject: remove SK_IGNORE_TO_STRING SK_IGNORE_TO_STRING is not defined anywhere. The same effect can be had by using a modern linker. Removing it simplifies bookmaker and makes our includes easier to understand. R=robertphillips@google.com TBR=reed@google.com Bug: skia:6898 Change-Id: Ib716f5ef1b42a7fbda0df43ece212d1b7c40289f Reviewed-on: https://skia-review.googlesource.com/118963 Reviewed-by: Robert Phillips Reviewed-by: Cary Clark Commit-Queue: Cary Clark --- src/effects/Sk2DPathEffect.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/effects/Sk2DPathEffect.cpp') diff --git a/src/effects/Sk2DPathEffect.cpp b/src/effects/Sk2DPathEffect.cpp index e7ef54b6f7..a541b91476 100644 --- a/src/effects/Sk2DPathEffect.cpp +++ b/src/effects/Sk2DPathEffect.cpp @@ -74,14 +74,12 @@ void Sk2DPathEffect::flatten(SkWriteBuffer& buffer) const { buffer.writeMatrix(fMatrix); } -#ifndef SK_IGNORE_TO_STRING void Sk2DPathEffect::toString(SkString* str) const { str->appendf("(matrix: %.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f %.2f)", fMatrix[SkMatrix::kMScaleX], fMatrix[SkMatrix::kMSkewX], fMatrix[SkMatrix::kMTransX], fMatrix[SkMatrix::kMSkewY], fMatrix[SkMatrix::kMScaleY], fMatrix[SkMatrix::kMTransY], fMatrix[SkMatrix::kMPersp0], fMatrix[SkMatrix::kMPersp1], fMatrix[SkMatrix::kMPersp2]); } -#endif /////////////////////////////////////////////////////////////////////////////// @@ -120,14 +118,12 @@ void SkLine2DPathEffect::flatten(SkWriteBuffer &buffer) const { } -#ifndef SK_IGNORE_TO_STRING void SkLine2DPathEffect::toString(SkString* str) const { str->appendf("SkLine2DPathEffect: ("); this->INHERITED::toString(str); str->appendf("width: %f", fWidth); str->appendf(")"); } -#endif /////////////////////////////////////////////////////////////////////////////// @@ -153,11 +149,10 @@ void SkPath2DPathEffect::next(const SkPoint& loc, int u, int v, dst->addPath(fPath, loc.fX, loc.fY); } -#ifndef SK_IGNORE_TO_STRING void SkPath2DPathEffect::toString(SkString* str) const { str->appendf("SkPath2DPathEffect: ("); this->INHERITED::toString(str); // TODO: print out path information str->appendf(")"); } -#endif + -- cgit v1.2.3