[Xfce4-commits] <xfconf:master> The last used timestamp is not used yet, disable it.

Nick Schermer noreply at xfce.org
Wed Feb 10 12:38:03 CET 2010


Updating branch refs/heads/master
         to 11c9df9a2e2102d5368df8d622f4b2c451748528 (commit)
       from 4705ae3b1628a0202862cf1d0a5b7119376f1db2 (commit)

commit 11c9df9a2e2102d5368df8d622f4b2c451748528
Author: Nick Schermer <nick at xfce.org>
Date:   Wed Feb 10 12:35:23 2010 +0100

    The last used timestamp is not used yet, disable it.

 xfconf/xfconf-cache.c |    8 ++++++++
 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;



More information about the Xfce4-commits mailing list