[tracker/cursor] Removed unused API
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/cursor] Removed unused API
- Date: Thu, 27 Aug 2009 13:42:15 +0000 (UTC)
commit 2a5bc81d39067ce958a08d1c3c8211e7ced0c63f
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Aug 27 15:41:35 2009 +0200
Removed unused API
src/libtracker-db/tracker-db-interface-sqlite.c | 33 -----------------------
src/libtracker-db/tracker-db-interface.h | 8 -----
2 files changed, 0 insertions(+), 41 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-interface-sqlite.c b/src/libtracker-db/tracker-db-interface-sqlite.c
index eeec76e..681c8aa 100644
--- a/src/libtracker-db/tracker-db-interface-sqlite.c
+++ b/src/libtracker-db/tracker-db-interface-sqlite.c
@@ -726,38 +726,6 @@ tracker_db_interface_sqlite_execute_query (TrackerDBInterface *db_interface,
return result_set;
}
-
-static TrackerDBCursor *
-tracker_db_interface_sqlite_start_cursor (TrackerDBInterface *db_interface,
- GError **error,
- const gchar *query)
-{
- TrackerDBInterfaceSqlitePrivate *priv;
- TrackerDBCursor *cursor;
- sqlite3_stmt *stmt;
- int retval;
-
- priv = TRACKER_DB_INTERFACE_SQLITE_GET_PRIVATE (db_interface);
-
- retval = sqlite3_prepare_v2 (priv->db, query, -1, &stmt, NULL);
-
- if (retval != SQLITE_OK) {
- g_set_error (error, TRACKER_DB_INTERFACE_ERROR,
- TRACKER_DB_QUERY_ERROR, "%s",
- sqlite3_errmsg (priv->db));
- return NULL;
- } else if (stmt == NULL) {
- g_set_error (error, TRACKER_DB_INTERFACE_ERROR,
- TRACKER_DB_QUERY_ERROR,
- "Could not prepare SQL statement:'%s'", query);
- return NULL;
- }
-
- cursor = tracker_db_cursor_sqlite_new (stmt, NULL);
-
- return cursor;
-}
-
static void
tracker_db_interface_sqlite_iface_init (TrackerDBInterfaceIface *iface)
{
@@ -765,7 +733,6 @@ tracker_db_interface_sqlite_iface_init (TrackerDBInterfaceIface *iface)
iface->execute_query = tracker_db_interface_sqlite_execute_query;
iface->disconnect = tracker_db_interface_sqlite_disconnect;
iface->reconnect = tracker_db_interface_sqlite_reconnect;
- iface->start_cursor = tracker_db_interface_sqlite_start_cursor;
}
TrackerDBInterface *
diff --git a/src/libtracker-db/tracker-db-interface.h b/src/libtracker-db/tracker-db-interface.h
index 5832590..e5cc30b 100644
--- a/src/libtracker-db/tracker-db-interface.h
+++ b/src/libtracker-db/tracker-db-interface.h
@@ -73,9 +73,6 @@ struct TrackerDBInterfaceIface {
TrackerDBResultSet * (* execute_query) (TrackerDBInterface *interface,
GError **error,
const gchar *query);
- TrackerDBCursor * (* start_cursor) (TrackerDBInterface *interface,
- GError **error,
- const gchar *query);
void (* disconnect) (TrackerDBInterface *interface);
void (* reconnect) (TrackerDBInterface *interface);
@@ -133,11 +130,6 @@ TrackerDBResultSet * tracker_db_interface_execute_query (TrackerDBInterface *
const gchar *query,
...) G_GNUC_PRINTF (3, 4);
-TrackerDBCursor * tracker_db_interface_start_cursor (TrackerDBInterface *interface,
- GError **error,
- const gchar *query,
- ...) G_GNUC_PRINTF (3, 4);
-
gboolean tracker_db_interface_start_transaction (TrackerDBInterface *interface);
gboolean tracker_db_interface_end_transaction (TrackerDBInterface *interface);
void tracker_db_interface_disconnect (TrackerDBInterface *interface);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]