[tracker] libtracker-data: Remove unused function format_sql_value_as_string
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Remove unused function format_sql_value_as_string
- Date: Mon, 27 Dec 2010 14:37:41 +0000 (UTC)
commit 65497de91658ebda578af20c5462f8d219a4ad46
Author: Jürg Billeter <j bitron ch>
Date: Mon Dec 27 15:32:18 2010 +0100
libtracker-data: Remove unused function format_sql_value_as_string
src/libtracker-data/tracker-data-update.c | 25 -------------------------
1 files changed, 0 insertions(+), 25 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 5f9bf64..0ee54bc 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2365,31 +2365,6 @@ tracker_data_notify_transaction (gboolean start_timer)
}
}
-
-static void
-format_sql_value_as_string (GString *sql,
- TrackerProperty *property)
-{
- switch (tracker_property_get_data_type (property)) {
- case TRACKER_PROPERTY_TYPE_RESOURCE:
- g_string_append_printf (sql, "(SELECT Uri FROM Resource WHERE ID = \"%s\")", tracker_property_get_name (property));
- break;
- case TRACKER_PROPERTY_TYPE_INTEGER:
- case TRACKER_PROPERTY_TYPE_DOUBLE:
- g_string_append_printf (sql, "CAST (\"%s\" AS TEXT)", tracker_property_get_name (property));
- break;
- case TRACKER_PROPERTY_TYPE_BOOLEAN:
- g_string_append_printf (sql, "CASE \"%s\" WHEN 1 THEN 'true' WHEN 0 THEN 'false' ELSE NULL END", tracker_property_get_name (property));
- break;
- case TRACKER_PROPERTY_TYPE_DATETIME:
- g_string_append_printf (sql, "strftime (\"%%Y-%%m-%%dT%%H:%%M:%%SZ\", \"%s\", \"unixepoch\")", tracker_property_get_name (property));
- break;
- default:
- g_string_append_printf (sql, "\"%s\"", tracker_property_get_name (property));
- break;
- }
-}
-
void
tracker_data_rollback_transaction (void)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]