[glib] gdesktopappinfo: remove should_ping_mime_monitor
- From: Ryan Lortie <desrt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdesktopappinfo: remove should_ping_mime_monitor
- Date: Thu, 3 Oct 2013 14:41:10 +0000 (UTC)
commit b95ef4aad457d502973ae6396e3bf45e3ba12753
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Jul 24 17:26:45 2013 -0400
gdesktopappinfo: remove should_ping_mime_monitor
This variable is used for nothing...
gio/gdesktopappinfo.c | 18 +-----------------
1 files changed, 1 insertions(+), 17 deletions(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index b584942..91c83b4 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]