[rhythmbox] Revert "rhythmdb: add rhythmdb_query_new_empty"



commit fe7cb880652aa36786e9e24490f2aa2553c8ac10
Author: Jonathan Matthew <jonathan d14n org>
Date:   Tue Apr 26 09:48:02 2011 +1000

    Revert "rhythmdb: add rhythmdb_query_new_empty"
    
    This reverts commit 716550468e488d1a7bd98c065be42463f0a16c34.
    
    This didn't actually work, and the correct way to create an empty
    query in python is 'GLib.PtrArray()'.

 rhythmdb/rhythmdb-query.c |   16 ----------------
 rhythmdb/rhythmdb.h       |    1 -
 2 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/rhythmdb/rhythmdb-query.c b/rhythmdb/rhythmdb-query.c
index 63a66a1..294bd41 100644
--- a/rhythmdb/rhythmdb-query.c
+++ b/rhythmdb/rhythmdb-query.c
@@ -58,22 +58,6 @@
 #define RB_PARSE_YEAR_LESS RB_PARSE_LESS
 
 /**
- * rhythmdb_query_new_empty:
- * @db: a #RhythmDB instance
- *
- * Creates an empty query.  Only really useful for callers
- * using introspection.
- *
- * Return value: (transfer full): a new query, must be freed
- * with rhythmdb_query_free()
- */
-RhythmDBQuery *
-rhythmdb_query_new_empty (RhythmDB *db)
-{
-	return rhythmdb_query_parse (db, RHYTHMDB_QUERY_END);
-}
-
-/**
  * rhythmdb_query_copy:
  * @array: the query to copy.
  *
diff --git a/rhythmdb/rhythmdb.h b/rhythmdb/rhythmdb.h
index 02ffdc4..4c68f3b 100644
--- a/rhythmdb/rhythmdb.h
+++ b/rhythmdb/rhythmdb.h
@@ -412,7 +412,6 @@ void		rhythmdb_do_full_query_async_parsed	(RhythmDB *db,
 							 RhythmDBQueryResults *results,
 							 RhythmDBQuery *query);
 
-RhythmDBQuery * rhythmdb_query_new_empty		(RhythmDB *db);
 RhythmDBQuery *	rhythmdb_query_parse			(RhythmDB *db, ...);
 void		rhythmdb_query_append			(RhythmDB *db, RhythmDBQuery *query, ...);
 void		rhythmdb_query_append_params		(RhythmDB *db, RhythmDBQuery *query, RhythmDBQueryType type, RhythmDBPropType prop, const GValue *value);



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