Eliminate redundancies.

reviewed by: plam
This commit is contained in:
Patrick Lam 2006-02-21 15:50:19 +00:00
parent b023dbd384
commit f2fb985c7a
6 changed files with 14 additions and 8 deletions

View File

@ -1,3 +1,14 @@
2006-02-21 Paul Cornett <paulcor1@bullseye.com>
reviewed by: plam
* src/fccache.c (FcDirCacheWrite):
* src/fcdir.c (FcFileScanConfig):
* src/fcfreetype.c (FcStringInPatternElement):
* src/fcxml.c (FcParseFamilies):
* src/ftglue.c (ftglue_face_goto_table):
Eliminate redundancies.
2006-02-21 Kjartan Maraas <kmaraas@gnome.org>
reviewed by: plam

View File

@ -34,7 +34,7 @@
#include <unistd.h>
#define ENDIAN_TEST 0x12345678
#define MACHINE_SIGNATURE_SIZE 9 + 5*20 + 1
#define MACHINE_SIGNATURE_SIZE (9 + 5*20 + 1)
#ifndef O_BINARY
#define O_BINARY 0
@ -1371,6 +1371,7 @@ FcDirCacheWrite (FcFontSet *set, FcStrSet *dirs, const FcChar8 *dir)
metadata.count)
perror("write current_dir_block");
free (current_dir_block);
current_dir_block = 0;
}
/* this actually serves to pad out the cache file, if needed */

View File

@ -55,9 +55,6 @@ FcFileScanConfig (FcFontSet *set,
if (FcFileIsDir (file))
return FcStrSetAdd (dirs, file);
if (force)
cache = 0;
id = 0;
do
{

View File

@ -976,7 +976,6 @@ FcStringInPatternElement (FcPattern *pat, const char *elt, FcChar8 *string)
if (!FcStrCmpIgnoreBlanksAndCase (old, string))
{
return FcTrue;
break;
}
return FcFalse;
}

View File

@ -1320,8 +1320,7 @@ FcParseFamilies (FcConfigParse *parse, FcVStackTag tag)
if (!FcVStackPushExpr (parse, tag, expr))
{
FcConfigMessage (parse, FcSevereError, "out of memory");
if (expr)
FcExprDestroy (expr);
FcExprDestroy (expr);
}
}
}

View File

@ -290,7 +290,6 @@ ftglue_face_goto_table( FT_Face face,
if ( face->num_faces > 1 )
{
/* deal with TrueType collections */
FT_ULong offset;
LOG(( ">> This is a TrueType Collection\n" ));