aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/ports/SkFontConfigInterface.h1
-rw-r--r--src/ports/SkFontConfigInterface.cpp7
2 files changed, 0 insertions, 8 deletions
diff --git a/include/ports/SkFontConfigInterface.h b/include/ports/SkFontConfigInterface.h
index bb7eebe5d5..12f777d655 100644
--- a/include/ports/SkFontConfigInterface.h
+++ b/include/ports/SkFontConfigInterface.h
@@ -35,7 +35,6 @@ public:
* Replace the current global instance with the specified one.
*/
static void SetGlobal(sk_sp<SkFontConfigInterface> fc);
- static SkFontConfigInterface* SetGlobal(SkFontConfigInterface*);
/**
* This should be treated as private to the impl of SkFontConfigInterface.
diff --git a/src/ports/SkFontConfigInterface.cpp b/src/ports/SkFontConfigInterface.cpp
index a30bd2dac2..0d52c0efc2 100644
--- a/src/ports/SkFontConfigInterface.cpp
+++ b/src/ports/SkFontConfigInterface.cpp
@@ -22,13 +22,6 @@ sk_sp<SkFontConfigInterface> SkFontConfigInterface::RefGlobal() {
return sk_ref_sp(SkFontConfigInterface::GetSingletonDirectInterface());
}
-SkFontConfigInterface* SkFontConfigInterface::SetGlobal(SkFontConfigInterface* fc) {
- SkAutoMutexAcquire ac(gFontConfigInterfaceMutex);
-
- gFontConfigInterface = sk_ref_sp(fc);
- return fc;
-}
-
void SkFontConfigInterface::SetGlobal(sk_sp<SkFontConfigInterface> fc) {
SkAutoMutexAcquire ac(gFontConfigInterfaceMutex);