[tracker/harmattan-pre-signal-updates: 1225/1380] Remove ScanTimeout from tracker-miner-fs config.



commit d67536dfbbea482dea722d5045854ef397032305
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Aug 31 13:00:22 2010 +0200

    Remove ScanTimeout from tracker-miner-fs config.
    
    This option has been unused for quite some time now.

 src/miners/fs/tracker-config.c |   49 ----------------------------------------
 1 files changed, 0 insertions(+), 49 deletions(-)
---
diff --git a/src/miners/fs/tracker-config.c b/src/miners/fs/tracker-config.c
index 9ba2700..97f7b75 100644
--- a/src/miners/fs/tracker-config.c
+++ b/src/miners/fs/tracker-config.c
@@ -44,7 +44,6 @@
 #define DEFAULT_INITIAL_SLEEP                    15       /* 0->1000 */
 #define DEFAULT_ENABLE_MONITORS                  TRUE
 #define DEFAULT_THROTTLE                         0        /* 0->20 */
-#define DEFAULT_SCAN_TIMEOUT                     0        /* 0->1000 */
 #define DEFAULT_CACHE_TIMEOUT                    60       /* 0->1000 */
 #define DEFAULT_INDEX_REMOVABLE_DEVICES          TRUE
 #define DEFAULT_INDEX_OPTICAL_DISCS              FALSE
@@ -60,7 +59,6 @@ typedef struct {
 
 	/* Monitors */
 	gboolean  enable_monitors;
-	gint      scan_timeout;
 	gint      cache_timeout;
 
 	/* Indexing */
@@ -120,7 +118,6 @@ enum {
 
 	/* Monitors */
 	PROP_ENABLE_MONITORS,
-	PROP_SCAN_TIMEOUT,
 	PROP_CACHE_TIMEOUT,
 
 	/* Indexing */
@@ -205,15 +202,6 @@ tracker_config_class_init (TrackerConfigClass *klass)
 	                                                       DEFAULT_ENABLE_MONITORS,
 	                                                       G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
 	g_object_class_install_property (object_class,
-	                                 PROP_SCAN_TIMEOUT,
-	                                 g_param_spec_int ("scan-timeout",
-	                                                   "Scan Timeout",
-	                                                   " Time in seconds between same events to prevent flooding (0->1000)",
-	                                                   0,
-	                                                   1000,
-	                                                   DEFAULT_SCAN_TIMEOUT,
-	                                                   G_PARAM_READWRITE | G_PARAM_CONSTRUCT));
-	g_object_class_install_property (object_class,
 	                                 PROP_CACHE_TIMEOUT,
 	                                 g_param_spec_int ("cache-timeout",
 	                                                   "Scan Timeout",
@@ -356,10 +344,6 @@ config_set_property (GObject      *object,
 		tracker_config_set_enable_monitors (TRACKER_CONFIG (object),
 		                                    g_value_get_boolean (value));
 		break;
-	case PROP_SCAN_TIMEOUT:
-		tracker_config_set_scan_timeout (TRACKER_CONFIG (object),
-		                                 g_value_get_int (value));
-		break;
 	case PROP_CACHE_TIMEOUT:
 		tracker_config_set_cache_timeout (TRACKER_CONFIG (object),
 		                                  g_value_get_int (value));
@@ -444,9 +428,6 @@ config_get_property (GObject    *object,
 	case PROP_ENABLE_MONITORS:
 		g_value_set_boolean (value, priv->enable_monitors);
 		break;
-	case PROP_SCAN_TIMEOUT:
-		g_value_set_int (value, priv->scan_timeout);
-		break;
 	case PROP_CACHE_TIMEOUT:
 		g_value_set_int (value, priv->cache_timeout);
 		break;
@@ -1110,18 +1091,6 @@ tracker_config_get_enable_monitors (TrackerConfig *config)
 }
 
 gint
-tracker_config_get_scan_timeout (TrackerConfig *config)
-{
-	TrackerConfigPrivate *priv;
-
-	g_return_val_if_fail (TRACKER_IS_CONFIG (config), DEFAULT_SCAN_TIMEOUT);
-
-	priv = TRACKER_CONFIG_GET_PRIVATE (config);
-
-	return priv->scan_timeout;
-}
-
-gint
 tracker_config_get_cache_timeout (TrackerConfig *config)
 {
 	TrackerConfigPrivate *priv;
@@ -1352,24 +1321,6 @@ tracker_config_set_enable_monitors (TrackerConfig *config,
 }
 
 void
-tracker_config_set_scan_timeout (TrackerConfig *config,
-                                 gint           value)
-{
-	TrackerConfigPrivate *priv;
-
-	g_return_if_fail (TRACKER_IS_CONFIG (config));
-
-	if (!tracker_keyfile_object_validate_int (config, "scan-timeout", value)) {
-		return;
-	}
-
-	priv = TRACKER_CONFIG_GET_PRIVATE (config);
-
-	priv->scan_timeout = value;
-	g_object_notify (G_OBJECT (config), "scan-timeout");
-}
-
-void
 tracker_config_set_cache_timeout (TrackerConfig *config,
                                   gint           value)
 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]