gfx/skia/patches/0001-Bug-895086-Remove-unused-find_from_uniqueID-function.patch

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/skia/patches/0001-Bug-895086-Remove-unused-find_from_uniqueID-function.patch	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +From 58861c38751adf1f4ef3f67f8e85f5c36f1c43a5 Mon Sep 17 00:00:00 2001
     1.5 +From: George Wright <gw@gwright.org.uk>
     1.6 +Date: Wed, 17 Jul 2013 16:28:07 -0400
     1.7 +Subject: [PATCH] Bug 895086 - Remove unused find_from_uniqueID() function from
     1.8 + SkFontHost_linux
     1.9 +
    1.10 +---
    1.11 + gfx/skia/src/ports/SkFontHost_linux.cpp | 14 --------------
    1.12 + 1 file changed, 14 deletions(-)
    1.13 +
    1.14 +diff --git a/gfx/skia/src/ports/SkFontHost_linux.cpp b/gfx/skia/src/ports/SkFontHost_linux.cpp
    1.15 +index df21014..05b73dc 100644
    1.16 +--- a/gfx/skia/src/ports/SkFontHost_linux.cpp
    1.17 ++++ b/gfx/skia/src/ports/SkFontHost_linux.cpp
    1.18 +@@ -117,20 +117,6 @@ static FamilyRec* find_family(const SkTypeface* member) {
    1.19 +     return NULL;
    1.20 + }
    1.21 + 
    1.22 +-static SkTypeface* find_from_uniqueID(uint32_t uniqueID) {
    1.23 +-    FamilyRec* curr = gFamilyHead;
    1.24 +-    while (curr != NULL) {
    1.25 +-        for (int i = 0; i < 4; i++) {
    1.26 +-            SkTypeface* face = curr->fFaces[i];
    1.27 +-            if (face != NULL && face->uniqueID() == uniqueID) {
    1.28 +-                return face;
    1.29 +-            }
    1.30 +-        }
    1.31 +-        curr = curr->fNext;
    1.32 +-    }
    1.33 +-    return NULL;
    1.34 +-}
    1.35 +-
    1.36 + /*  Remove reference to this face from its family. If the resulting family
    1.37 +  is empty (has no faces), return that family, otherwise return NULL
    1.38 +  */
    1.39 +-- 
    1.40 +1.8.3.1
    1.41 +

mercurial