There are no external callers to mail_cache_reset(), and this simplifies the
code.
{
if (!cache->index->readonly && !MAIL_INDEX_IS_IN_MEMORY(cache->index))
i_unlink_if_exists(cache->filepath);
-}
-
-void mail_cache_reset(struct mail_cache *cache)
-{
- mail_cache_unlink(cache);
/* mark the cache as unusable */
cache->hdr = NULL;
}
{
va_list va;
- mail_cache_reset(cache);
+ mail_cache_unlink(cache);
va_start(va, fmt);
T_BEGIN {
!MAIL_CACHE_IS_UNUSABLE(cache) &&
cache->hdr->file_seq != 0 ?
cache->hdr->file_seq : 0;
- cache->hdr = NULL;
*corrupted_r = TRUE;
return -1;
}
ATTR_FORMAT(2, 3);
void mail_cache_set_seq_corrupted_reason(struct mail_cache_view *cache_view,
uint32_t seq, const char *reason);
-/* Delete the cache file. */
-void mail_cache_reset(struct mail_cache *cache);
/* Returns human-readable reason for why a cached field is missing for
the specified mail. This is mainly for debugging purposes, so the exact