diff options
Diffstat (limited to 'src/pathops/SkOpSpan.cpp')
-rw-r--r-- | src/pathops/SkOpSpan.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/pathops/SkOpSpan.cpp b/src/pathops/SkOpSpan.cpp index 28989d9511..f5195edb38 100644 --- a/src/pathops/SkOpSpan.cpp +++ b/src/pathops/SkOpSpan.cpp @@ -24,8 +24,7 @@ const SkOpPtT* SkOpPtT::active() const { return ptT; } } - SkASSERT(0); // should never return deleted - return this; + return nullptr; // should never return deleted; caller must abort } bool SkOpPtT::contains(const SkOpPtT* check) const { @@ -269,12 +268,6 @@ tryNextRemainder: fSpanAdds += span->fSpanAdds; } -SkOpSpanBase* SkOpSpanBase::active() { - SkOpSpanBase* result = fPrev ? fPrev->next() : upCast()->next()->prev(); - SkASSERT(this == result || fDebugDeleted); - return result; -} - // please keep in sync with debugCheckForCollapsedCoincidence() void SkOpSpanBase::checkForCollapsedCoincidence() { SkOpCoincidence* coins = this->globalState()->coincidence(); |