summaryrefslogtreecommitdiff
path: root/xfconf/xfconf-cache.c
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2010-02-10 12:35:23 +0100
committerNick Schermer <nick@xfce.org>2010-02-10 12:35:23 +0100
commit11c9df9a2e2102d5368df8d622f4b2c451748528 (patch)
treea92773b259d7f2b0ea4086a9f3ce83c8b2728508 /xfconf/xfconf-cache.c
parent4705ae3b1628a0202862cf1d0a5b7119376f1db2 (diff)
downloadxfconf-11c9df9a2e2102d5368df8d622f4b2c451748528.tar.gz
The last used timestamp is not used yet, disable it.
Diffstat (limited to 'xfconf/xfconf-cache.c')
-rw-r--r--xfconf/xfconf-cache.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xfconf/xfconf-cache.c b/xfconf/xfconf-cache.c
index baefcfd..432982b 100644
--- a/xfconf/xfconf-cache.c
+++ b/xfconf/xfconf-cache.c
@@ -57,7 +57,9 @@ static void xfconf_cache_mutex_unlock(GStaticMutex *mtx) { g_static_mutex_unlock
typedef struct
{
+#if 0
GTimeVal last_used;
+#endif
GValue *value;
} XfconfCacheItem;
@@ -70,7 +72,9 @@ xfconf_cache_item_new(const GValue *value,
g_return_val_if_fail(value, NULL);
item = g_slice_new0(XfconfCacheItem);
+#if 0
g_get_current_time(&item->last_used);
+#endif
if(G_LIKELY(steal)) {
item->value = (GValue *) value;
@@ -90,7 +94,9 @@ xfconf_cache_item_update(XfconfCacheItem *item,
if(value && _xfconf_gvalue_is_equal(item->value, value))
return FALSE;
+#if 0
g_get_current_time(&item->last_used);
+#endif
if(value) {
g_value_unset(item->value);
@@ -676,8 +682,10 @@ xfconf_cache_lookup_locked(XfconfCache *cache,
item = NULL;
}
}
+#if 0
if(item)
xfconf_cache_item_update(item, NULL);
+#endif
}
return !!item;