Huw Davies : gdi32: Remove unused variable.

Alexandre Julliard julliard at winehq.org
Fri Mar 16 11:27:50 CDT 2012


Module: wine
Branch: master
Commit: 18d19e7f18df0d29440989b69d34b260c7851bf0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=18d19e7f18df0d29440989b69d34b260c7851bf0

Author: Huw Davies <huw at codeweavers.com>
Date:   Fri Mar 16 14:52:00 2012 +0000

gdi32: Remove unused variable.

---

 dlls/gdi32/freetype.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index ec39814..461d646 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -1707,7 +1707,6 @@ static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_
 {
     FT_Face ft_face;
     TT_OS2 *pOS2;
-    TT_Header *pHeader = NULL;
     FT_Error err;
     FT_Long face_index = 0, num_faces;
     INT ret = 0;
@@ -1769,7 +1768,7 @@ static INT AddFontToList(const char *file, void *font_data_ptr, DWORD font_data_
         {
             if(!(pOS2 = pFT_Get_Sfnt_Table(ft_face, ft_sfnt_os2)) ||
                !pFT_Get_Sfnt_Table(ft_face, ft_sfnt_hhea) ||
-               !(pHeader = pFT_Get_Sfnt_Table(ft_face, ft_sfnt_head)))
+               !pFT_Get_Sfnt_Table(ft_face, ft_sfnt_head))
             {
                 TRACE("Font %s/%p lacks either an OS2, HHEA or HEAD table.\n"
                       "Skipping this font.\n", debugstr_a(file), font_data_ptr);




More information about the wine-cvs mailing list