summaryrefslogtreecommitdiff
path: root/fc-cache
diff options
context:
space:
mode:
authorKeith Packard <keithp@koto.keithp.com>2007-11-03 21:57:51 -0700
committerKeith Packard <keithp@koto.keithp.com>2007-11-03 21:57:51 -0700
commit9b84ecff92b8dccf6559a858e35762c0f664429a (patch)
treedc042f82d6ba2334e0a0bf9f0594cc3e5349648c /fc-cache
parent1d93c1752f03b833603ea31c2cfbd16868c44922 (diff)
Don't check cache file time stamps when cleaning cache dir.
Cache file mtime is meaningless now that the directory time is encoded in the cache.
Diffstat (limited to 'fc-cache')
-rw-r--r--fc-cache/fc-cache.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/fc-cache/fc-cache.c b/fc-cache/fc-cache.c
index b4d49885..54add90b 100644
--- a/fc-cache/fc-cache.c
+++ b/fc-cache/fc-cache.c
@@ -255,7 +255,6 @@ cleanCacheDirectory (FcConfig *config, FcChar8 *dir, FcBool verbose)
FcBool ret = FcTrue;
FcBool remove;
FcCache *cache;
- struct stat file_stat;
struct stat target_stat;
dir_base = FcStrPlus (dir, (FcChar8 *) "/");
@@ -302,7 +301,7 @@ cleanCacheDirectory (FcConfig *config, FcChar8 *dir, FcBool verbose)
break;
}
remove = FcFalse;
- cache = FcDirCacheLoadFile (file_name, &file_stat);
+ cache = FcDirCacheLoadFile (file_name, NULL);
if (!cache)
{
if (verbose)
@@ -319,13 +318,6 @@ cleanCacheDirectory (FcConfig *config, FcChar8 *dir, FcBool verbose)
dir, ent->d_name, target_dir);
remove = FcTrue;
}
- else if (target_stat.st_mtime > file_stat.st_mtime)
- {
- if (verbose)
- printf ("%s: %s: cache outdated: %s\n",
- dir, ent->d_name, target_dir);
- remove = FcTrue;
- }
}
if (remove)
{