aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ports/SkFontHost_FreeType.cpp
diff options
context:
space:
mode:
authorGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-02-17 18:56:20 +0000
committerGravatar bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-02-17 18:56:20 +0000
commitae50e11678aeb0d01c9b2a75daaeaf762b1c0fcf (patch)
treec84080d2a260bea08c15adac1b19d67dfdbc9121 /src/ports/SkFontHost_FreeType.cpp
parent543c719a6d2d8f27f125cb5cb02aaa9c2e563bfd (diff)
Remove SkFontHost::ValidFontID PART 1: remove only caller.
Diffstat (limited to 'src/ports/SkFontHost_FreeType.cpp')
-rw-r--r--src/ports/SkFontHost_FreeType.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/ports/SkFontHost_FreeType.cpp b/src/ports/SkFontHost_FreeType.cpp
index 1ef0b3df4f..fc5fda7711 100644
--- a/src/ports/SkFontHost_FreeType.cpp
+++ b/src/ports/SkFontHost_FreeType.cpp
@@ -857,17 +857,6 @@ SkScalerContext_FreeType::~SkScalerContext_FreeType() {
this face with other context (at different sizes).
*/
FT_Error SkScalerContext_FreeType::setupSize() {
- /* In the off-chance that a font has been removed, we want to error out
- right away, so call resolve just to be sure.
-
- TODO: perhaps we can skip this, by walking the global font cache and
- killing all of the contexts when we know that a given fontID is going
- away...
- */
- if (!SkFontHost::ValidFontID(fRec.fFontID)) {
- return (FT_Error)-1;
- }
-
FT_Error err = FT_Activate_Size(fFTSize);
if (err != 0) {