Removed unnecessary code from DSLExpression

This ReportErrors call is fairly heavy (we create a lot of expressions)
and no longer appears to be necessary given the error handling changes
elsewhere.

Change-Id: Ib9433e4346104e31e7577d6fe4b10208a277a9ff
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/448936
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
Ethan Nicholas 2021-09-14 17:05:49 -04:00 committed by SkCQ
parent 9680fed583
commit 720674e119

View File

@ -34,8 +34,6 @@ DSLExpression::DSLExpression(DSLExpression&& other)
DSLExpression::DSLExpression(std::unique_ptr<SkSL::Expression> expression)
: fExpression(std::move(expression)) {
SkASSERT(this->hasValue());
DSLWriter::ReportErrors(PositionInfo::Offset(nullptr, GetErrorReporter().source(),
fExpression->fOffset));
}
DSLExpression::DSLExpression(float value, PositionInfo pos)