diff options
Diffstat (limited to 'src/effects/SkDashPathEffect.cpp')
-rw-r--r-- | src/effects/SkDashPathEffect.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/effects/SkDashPathEffect.cpp b/src/effects/SkDashPathEffect.cpp index ced0aab69a..6e10e5466d 100644 --- a/src/effects/SkDashPathEffect.cpp +++ b/src/effects/SkDashPathEffect.cpp @@ -384,17 +384,3 @@ void SkDashPathEffect::toString(SkString* str) const { str->appendf("))"); } #endif - -////////////////////////////////////////////////////////////////////////////////////////////////// - -SkPathEffect* SkDashPathEffect::Create(const SkScalar intervals[], int count, SkScalar phase) { - if ((count < 2) || !SkIsAlign2(count)) { - return nullptr; - } - for (int i = 0; i < count; i++) { - if (intervals[i] < 0) { - return nullptr; - } - } - return new SkDashPathEffect(intervals, count, phase); -} |