[rygel-gst-0-10-plugins] Remove useless functions and declarations.



commit b771ca642d8dc727fd8b35dcf69f38b3b98f4628
Author: Krzesimir Nowak <krnowak openismus com>
Date:   Wed Feb 6 11:56:36 2013 +0100

    Remove useless functions and declarations.

 src/media-export/rygel-media-export-database.c     |    4 --
 .../rygel-media-export-sqlite-wrapper.c            |   44 --------------------
 .../rygel-media-export-sqlite-wrapper.h            |    7 ---
 3 files changed, 0 insertions(+), 55 deletions(-)
---
diff --git a/src/media-export/rygel-media-export-database.c b/src/media-export/rygel-media-export-database.c
index fc7625f..a46902a 100644
--- a/src/media-export/rygel-media-export-database.c
+++ b/src/media-export/rygel-media-export-database.c
@@ -38,10 +38,6 @@ G_DEFINE_TYPE (RygelMediaExportDatabase,
                rygel_media_export_database,
                RYGEL_MEDIA_EXPORT_TYPE_SQLITE_WRAPPER)
 
-static void rygel_media_export_database_utf8_contains (sqlite3_context* context, sqlite3_value** args, int args_length1);
-static gint rygel_media_export_database_utf8_collate (gint alen, gconstpointer a, gint blen, gconstpointer b);
-static void rygel_media_export_database_utf8_contains_sqlite_user_func_callback (sqlite3_context* context, int values_length1, sqlite3_value** values);
-static gint rygel_media_export_database_utf8_collate_sqlite_compare_callback (gpointer self, gint alen, gconstpointer a, gint blen, gconstpointer b);
 
 /**
  * Function to implement the custom SQL function 'contains'
diff --git a/src/media-export/rygel-media-export-sqlite-wrapper.c b/src/media-export/rygel-media-export-sqlite-wrapper.c
index bc4cdd9..7744697 100644
--- a/src/media-export/rygel-media-export-sqlite-wrapper.c
+++ b/src/media-export/rygel-media-export-sqlite-wrapper.c
@@ -47,48 +47,6 @@ enum  {
 };
 
 /**
- * Wrap an existing SQLite Database object.
- *
- * The SqliteWrapper doesn't take ownership of the passed db
- */
-RygelMediaExportSqliteWrapper *
-rygel_media_export_sqlite_wrapper_new_wrap (sqlite3 *db) {
-  return RYGEL_MEDIA_EXPORT_SQLITE_WRAPPER (g_object_new (RYGEL_MEDIA_EXPORT_TYPE_SQLITE_WRAPPER,
-                                                          "db", db,
-                                                          NULL));
-}
-
-/**
- * Create or open a new SQLite database in path.
- *
- * @note: Path may also be ":memory:" for temporary databases
- */
-RygelMediaExportSqliteWrapper *
-rygel_media_export_sqlite_wrapper_new (const gchar  *path,
-                                       GError      **error) {
-  RygelMediaExportSqliteWrapper *self;
-  sqlite3 *db;
-  GError *inner_error;
-
-  g_return_val_if_fail (path != NULL, NULL);
-
-  db = NULL;
-  sqlite3_open (path, &db);
-  self = RYGEL_MEDIA_EXPORT_SQLITE_WRAPPER (g_object_new (RYGEL_MEDIA_EXPORT_TYPE_SQLITE_WRAPPER,
-                                                          "db", db,
-                                                          "db-own", db,
-                                                          NULL));
-  inner_error = NULL;
-  rygel_media_export_sqlite_wrapper_throw_if_db_has_error (self, &inner_error);
-  if (inner_error != NULL) {
-    g_propagate_error (error, inner_error);
-    g_object_unref (self);
-    self = NULL;
-  }
-  return self;
-}
-
-/**
  * Convert a SQLite return code to a DatabaseError
  */
 void
@@ -227,6 +185,4 @@ rygel_media_export_sqlite_wrapper_class_init (RygelMediaExportSqliteWrapperClass
 static void
 rygel_media_export_sqlite_wrapper_init (RygelMediaExportSqliteWrapper *self) {
   self->priv = RYGEL_MEDIA_EXPORT_SQLITE_WRAPPER_GET_PRIVATE (self);
-  self->priv->database = NULL;
-  self->priv->reference = NULL;
 }
diff --git a/src/media-export/rygel-media-export-sqlite-wrapper.h b/src/media-export/rygel-media-export-sqlite-wrapper.h
index ec2d4a2..4552981 100644
--- a/src/media-export/rygel-media-export-sqlite-wrapper.h
+++ b/src/media-export/rygel-media-export-sqlite-wrapper.h
@@ -51,13 +51,6 @@ struct _RygelMediaExportSqliteWrapperClass {
 GType
 rygel_media_export_sqlite_wrapper_get_type (void) G_GNUC_CONST;
 
-RygelMediaExportSqliteWrapper *
-rygel_media_export_sqlite_wrapper_new (const gchar  *path,
-                                       GError      **error);
-
-RygelMediaExportSqliteWrapper *
-rygel_media_export_sqlite_wrapper_new_wrap (sqlite3 *db);
-
 void
 rygel_media_export_sqlite_wrapper_throw_if_db_has_error (RygelMediaExportSqliteWrapper  *self,
                                                          GError                        **error);



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