glocalfileinfo: Remove a redundant store

This fixes a scan-build warning:
```
../../../../source/glib/gio/glocalfileinfo.c:1661:28: warning: Although the value stored to 'mydirname' is used in the enclosing expression, the value is never actually read from 'mydirname' [deadcode.DeadStores]
                           mydirname = g_strdup (dirname),
                           ^           ~~~~~~~~~~~~~~~~~~
```

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Helps: #1767
This commit is contained in:
Philip Withnall 2022-04-28 11:20:11 +01:00
parent b509e59726
commit a17a27bcf1

View File

@ -1651,14 +1651,12 @@ file_is_hidden (const gchar *path,
if (!g_hash_table_lookup_extended (hidden_cache, dirname,
NULL, (gpointer *) &data))
{
gchar *mydirname;
data = g_new0 (HiddenCacheData, 1);
data->hidden_files = table = read_hidden_file (dirname);
data->timestamp_secs = g_get_monotonic_time () / G_USEC_PER_SEC;
g_hash_table_insert (hidden_cache,
mydirname = g_strdup (dirname),
g_strdup (dirname),
data);
if (!hidden_cache_source)