From 31aa27da9dcb835cba04918a2d4db921d3552881 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Tue, 15 May 2018 14:17:25 -0400 Subject: Remove non-smart SkFontConfigInterface::SetGlobal. This method is no longer used and is superseded by the 'smart' version. Change-Id: I491dda095224d443d184e8d73b36b1328227c99e Reviewed-on: https://skia-review.googlesource.com/128312 Reviewed-by: Herb Derby Commit-Queue: Ben Wagner --- src/ports/SkFontConfigInterface.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/ports') diff --git a/src/ports/SkFontConfigInterface.cpp b/src/ports/SkFontConfigInterface.cpp index a30bd2dac2..864d6159ef 100644 --- a/src/ports/SkFontConfigInterface.cpp +++ b/src/ports/SkFontConfigInterface.cpp @@ -6,7 +6,6 @@ */ #include "SkFontConfigInterface.h" -#include "SkFontMgr.h" #include "SkMutex.h" #include "SkRefCnt.h" @@ -22,13 +21,6 @@ sk_sp 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 fc) { SkAutoMutexAcquire ac(gFontConfigInterfaceMutex); -- cgit v1.2.3