Remove Skia version number.
The value hasn't changed in a long time, and is unlikely to be useful
anytime soon.
Change-Id: Iec5ca31558bd427087f4b7f90cdde5c3c09f12ef
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/205586
Commit-Queue: Ben Wagner <bungeman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Auto-Submit: Ben Wagner <bungeman@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
diff --git a/include/core/SkGraphics.h b/include/core/SkGraphics.h
index 9830768..84b0da8 100644
--- a/include/core/SkGraphics.h
+++ b/include/core/SkGraphics.h
@@ -27,12 +27,6 @@
static void Term() {}
/**
- * Return the version numbers for the library. If the parameter is not
- * null, it is set to the version number.
- */
- static void GetVersion(int32_t* major, int32_t* minor, int32_t* patch);
-
- /**
* Return the max number of bytes that should be used by the font cache.
* If the cache needs to allocate more, it will purge previous entries.
* This max can be changed by calling SetFontCacheLimit().
diff --git a/include/core/SkTypes.h b/include/core/SkTypes.h
index 697afc8..32da7dd 100644
--- a/include/core/SkTypes.h
+++ b/include/core/SkTypes.h
@@ -19,13 +19,6 @@
/** \file SkTypes.h
*/
-/** See SkGraphics::GetVersion() to retrieve these at runtime
-*/
-#define SKIA_VERSION_MAJOR 1
-#define SKIA_VERSION_MINOR 0
-#define SKIA_VERSION_PATCH 0
-
-
/** Called internally if we hit an unrecoverable error.
The platform implementation must not return, but should either throw
an exception or otherwise exit.
diff --git a/src/core/SkGraphics.cpp b/src/core/SkGraphics.cpp
index d705f27..b85e236 100644
--- a/src/core/SkGraphics.cpp
+++ b/src/core/SkGraphics.cpp
@@ -30,18 +30,6 @@
#include <stdlib.h>
-void SkGraphics::GetVersion(int32_t* major, int32_t* minor, int32_t* patch) {
- if (major) {
- *major = SKIA_VERSION_MAJOR;
- }
- if (minor) {
- *minor = SKIA_VERSION_MINOR;
- }
- if (patch) {
- *patch = SKIA_VERSION_PATCH;
- }
-}
-
void SkGraphics::Init() {
// SkGraphics::Init() must be thread-safe and idempotent.
SkCpu::CacheRuntimeFeatures();