[glib/wip/gdesktopappinfo: 6/13] gdesktopappinfo: remove should_ping_mime_monitor
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gdesktopappinfo: 6/13] gdesktopappinfo: remove should_ping_mime_monitor
- Date: Mon, 29 Jul 2013 01:04:22 +0000 (UTC)
commit 920fc59d78669bbfafdf537864e957f3f8620615
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 02303e6..0df6ffc 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -2839,7 +2839,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;
@@ -2937,9 +2936,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);
@@ -3024,9 +3020,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);
@@ -3114,9 +3107,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);
@@ -3345,13 +3335,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]