[tracker] libtracker-db: Remove unused function



commit e2719ddbd66b9378be09cd4ae88b6e91a5695fed
Author: Jürg Billeter <j bitron ch>
Date:   Thu May 14 11:16:06 2009 +0200

    libtracker-db: Remove unused function
---
 src/libtracker-db/tracker-db-manager.c |   20 --------------------
 src/libtracker-db/tracker-db-manager.h |    1 -
 2 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/src/libtracker-db/tracker-db-manager.c b/src/libtracker-db/tracker-db-manager.c
index b6b83d6..64589ab 100644
--- a/src/libtracker-db/tracker-db-manager.c
+++ b/src/libtracker-db/tracker-db-manager.c
@@ -45,9 +45,6 @@
 /* Default memory settings for databases */
 #define TRACKER_DB_PAGE_SIZE_DONT_SET -1
 
-/* Size is in bytes and is currently 2Gb */
-#define TRACKER_DB_MAX_FILE_SIZE      2000000000 
-
 /* Set current database version we are working with */
 #define TRACKER_DB_VERSION_NOW        TRACKER_DB_VERSION_5
 #define TRACKER_DB_VERSION_FILE       "db-version.txt"
@@ -1407,20 +1404,3 @@ tracker_db_manager_get_db_interface (void)
 	return resources_iface;
 }
 
-gboolean
-tracker_db_manager_are_db_too_big (void)
-{
-	const gchar *filename_const;
-	gboolean     too_big;
-
-	filename_const = tracker_db_manager_get_file (TRACKER_DB_METADATA);
-	too_big = tracker_file_get_size (filename_const) > TRACKER_DB_MAX_FILE_SIZE;
-
-	if (too_big) {
-		g_critical ("Metadata database is too big, discontinuing indexing");
-		return TRUE;
-	}
-
-	return FALSE;
-
-}
diff --git a/src/libtracker-db/tracker-db-manager.h b/src/libtracker-db/tracker-db-manager.h
index fe2e724..b7023a7 100644
--- a/src/libtracker-db/tracker-db-manager.h
+++ b/src/libtracker-db/tracker-db-manager.h
@@ -68,7 +68,6 @@ TrackerDBInterface *
 	     tracker_db_manager_get_db_interfaces	    (gint num, ...);
 TrackerDBInterface *
 	     tracker_db_manager_get_db_interfaces_ro	    (gint num, ...);
-gboolean     tracker_db_manager_are_db_too_big		    (void);
 
 G_END_DECLS
 



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