mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 05:56:14 +01:00
gdesktopappinfo: remove should_ping_mime_monitor
This variable is used for nothing...
This commit is contained in:
parent
33762a4173
commit
b95ef4aad4
@ -2842,7 +2842,6 @@ typedef struct {
|
||||
GList *dirs; /* mimeinfo.cache and defaults.list */
|
||||
GHashTable *global_defaults_cache; /* global results of defaults.list lookup and validation */
|
||||
time_t last_stat_time;
|
||||
guint should_ping_mime_monitor : 1;
|
||||
} MimeInfoCache;
|
||||
|
||||
static MimeInfoCache *mime_info_cache = NULL;
|
||||
@ -2940,9 +2939,6 @@ mime_info_cache_dir_init (MimeInfoCacheDir *dir)
|
||||
if (g_stat (filename, &buf) < 0)
|
||||
goto error;
|
||||
|
||||
if (dir->mime_info_cache_timestamp > 0)
|
||||
mime_info_cache->should_ping_mime_monitor = TRUE;
|
||||
|
||||
dir->mime_info_cache_timestamp = buf.st_mtime;
|
||||
|
||||
g_key_file_load_from_file (key_file, filename, G_KEY_FILE_NONE, &load_error);
|
||||
@ -3027,9 +3023,6 @@ mime_info_cache_dir_init_defaults_list (MimeInfoCacheDir *dir)
|
||||
if (g_stat (filename, &buf) < 0)
|
||||
goto error;
|
||||
|
||||
if (dir->defaults_list_timestamp > 0)
|
||||
mime_info_cache->should_ping_mime_monitor = TRUE;
|
||||
|
||||
dir->defaults_list_timestamp = buf.st_mtime;
|
||||
|
||||
g_key_file_load_from_file (key_file, filename, G_KEY_FILE_NONE, &load_error);
|
||||
@ -3117,9 +3110,6 @@ mime_info_cache_dir_init_mimeapps_list (MimeInfoCacheDir *dir)
|
||||
if (g_stat (filename, &buf) < 0)
|
||||
goto error;
|
||||
|
||||
if (dir->mimeapps_list_timestamp > 0)
|
||||
mime_info_cache->should_ping_mime_monitor = TRUE;
|
||||
|
||||
dir->mimeapps_list_timestamp = buf.st_mtime;
|
||||
|
||||
g_key_file_load_from_file (key_file, filename, G_KEY_FILE_NONE, &load_error);
|
||||
@ -3348,13 +3338,7 @@ mime_info_cache_init (void)
|
||||
mime_info_cache->last_stat_time = now;
|
||||
}
|
||||
}
|
||||
|
||||
if (mime_info_cache->should_ping_mime_monitor)
|
||||
{
|
||||
/* g_idle_add (emit_mime_changed, NULL); */
|
||||
mime_info_cache->should_ping_mime_monitor = FALSE;
|
||||
}
|
||||
|
||||
|
||||
G_UNLOCK (mime_info_cache);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user