Remove redundant helper function as all clients pass locale
authorDerek Sollenberger <djsollen@google.com>
Mon, 28 Jul 2014 14:04:55 +0000 (10:04 -0400)
committerDerek Sollenberger <djsollen@google.com>
Mon, 28 Jul 2014 14:04:55 +0000 (10:04 -0400)
R=tomhudson@google.com

Review URL: https://codereview.chromium.org/426643003

include/ports/SkTypeface_android.h
src/ports/SkFontConfigInterface_android.cpp

index 843bf19..e46c8f8 100644 (file)
@@ -17,19 +17,6 @@ class SkPaintOptionsAndroid;
 
 /**
  *  Get the family name of the font in the fallback font list containing
- *  the specified character using the system's default language. This function
- *  also assumes the only families with the elegant or default variants will be
- *  returned.
- *
- *  @param uni  The unicode character to use for the lookup.
- *  @param name The family name of the font file containing the unicode character
- *              in the default language
- *  @return     true if a font is found and false otherwise
- */
-SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, SkString* name);
-
-/**
- *  Get the family name of the font in the fallback font list containing
  *  the specified character taking into account the provided language. This
  *  function also assumes the only families with the elegant or default variants
  *  will be returned.
index 3f169e1..faf995b 100644 (file)
@@ -738,11 +738,6 @@ SkTypeface* SkFontConfigInterfaceAndroid::getTypefaceForGlyphID(uint16_t glyphID
 
 ///////////////////////////////////////////////////////////////////////////////
 
-bool SkGetFallbackFamilyNameForChar(SkUnichar uni, SkString* name) {
-    SkFontConfigInterfaceAndroid* fontConfig = getSingletonInterface();
-    return fontConfig->getFallbackFamilyNameForChar(uni, NULL, name);
-}
-
 bool SkGetFallbackFamilyNameForChar(SkUnichar uni, const char* lang, SkString* name) {
     SkFontConfigInterfaceAndroid* fontConfig = getSingletonInterface();
     return fontConfig->getFallbackFamilyNameForChar(uni, lang, name);