summary: Make flatpak_cache_dir_summary static void

This function always returned NULL, and the return value was never
checked.
tingping/wmclass
Sam Spilsbury 2016-06-01 05:59:54 +00:00
parent d9ec859878
commit c533e1aee6
1 changed files with 2 additions and 5 deletions

View File

@ -3738,18 +3738,17 @@ flatpak_dir_lookup_cached_summary (FlatpakDir *self,
return res;
}
static GBytes *
static void
flatpak_dir_cache_summary (FlatpakDir *self,
GBytes *bytes,
const char *name,
const char *url)
{
CachedSummary *summary;
GBytes *res = NULL;
/* No sense caching the summary if there isn't one */
if (!bytes)
return NULL;
return;
G_LOCK (cache);
@ -3760,8 +3759,6 @@ flatpak_dir_cache_summary (FlatpakDir *self,
g_hash_table_insert (self->summary_cache, summary->remote, summary);
G_UNLOCK (cache);
return res;
}
static gboolean