removed localmatrix getter

Change-Id: I0325719c44993ddefec207d65fcb4babff807f70
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/208097
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Mike Reed <reed@google.com>
Auto-Submit: Mike Reed <reed@google.com>
diff --git a/include/core/SkShader.h b/include/core/SkShader.h
index 94820f7..261f14a 100644
--- a/include/core/SkShader.h
+++ b/include/core/SkShader.h
@@ -127,14 +127,6 @@
      */
     sk_sp<SkShader> makeWithColorFilter(sk_sp<SkColorFilter>) const;
 
-    //////////////////////////////////////////////////////////////////////////
-    //  Factory methods for stock shaders
-
-#ifdef SK_SUPPORT_LEGACY_SHADER_LOCALMATRIX
-    SkMatrix getLocalMatrix() const;
-    sk_sp<SkShader> makeAsALocalMatrixShader(SkMatrix* localMatrix) const;
-#endif
-
 private:
     SkShader() = default;
     friend class SkShaderBase;
diff --git a/src/shaders/SkShader.cpp b/src/shaders/SkShader.cpp
index 2a47bef..4861d2a 100644
--- a/src/shaders/SkShader.cpp
+++ b/src/shaders/SkShader.cpp
@@ -26,15 +26,6 @@
 #include "GrFragmentProcessor.h"
 #endif
 
-#ifdef SK_SUPPORT_LEGACY_SHADER_LOCALMATRIX
-SkMatrix SkShader::getLocalMatrix() const {
-    return as_SB(this)->getLocalMatrix();
-}
-sk_sp<SkShader> SkShader::makeAsALocalMatrixShader(SkMatrix* localMatrix) const {
-    return as_SB(this)->makeAsALocalMatrixShader(localMatrix);
-}
-#endif
-
 SkShaderBase::SkShaderBase(const SkMatrix* localMatrix)
     : fLocalMatrix(localMatrix ? *localMatrix : SkMatrix::I()) {
     // Pre-cache so future calls to fLocalMatrix.getType() are threadsafe.