Removed setErrorCount from SkSL ErrorReporter

As we move towards eliminating ErrorReporter in favor of the (public)
dsl::ErrorHandler, setErrorCount becomes a less palateable API. It's
easy enough to remove, so there's no great incentive to keep it around.
Change-Id: I5253e2723cc6ac8208c4a3f5890bba8e177d4055
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/438220
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: John Stiles <johnstiles@google.com>
diff --git a/src/sksl/SkSLCompiler.h b/src/sksl/SkSLCompiler.h
index 868db07..46c5803 100644
--- a/src/sksl/SkSLCompiler.h
+++ b/src/sksl/SkSLCompiler.h
@@ -167,12 +167,15 @@
 
     void writeErrorCount();
 
+    void resetErrors() {
+        fErrorText.clear();
+        fErrorCount = 0;
+    }
+
     int errorCount() override {
         return fErrorCount;
     }
 
-    void setErrorCount(int c) override;
-
     Context& context() {
         return *fContext;
     }
@@ -260,7 +263,6 @@
 
     int fErrorCount = 0;
     String fErrorText;
-    std::vector<size_t> fErrorTextLength;
 
     static OverrideFlag sOptimizer;
     static OverrideFlag sInliner;