Cache file mtime is meaningless now that the directory time is encoded in
the cache.
FcBool ret = FcTrue;
FcBool remove;
FcCache *cache;
- struct stat file_stat;
struct stat target_stat;
dir_base = FcStrPlus (dir, (FcChar8 *) "/");
break;
}
remove = FcFalse;
- cache = FcDirCacheLoadFile (file_name, &file_stat);
+ cache = FcDirCacheLoadFile (file_name, NULL);
if (!cache)
{
if (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)
{