[libgdata] [core] Remove unused parameters from _gdata_service_query()



commit 474abfaf1a30a3fa80283e716f1376a26bfefc70
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Apr 14 18:47:24 2010 +0100

    [core] Remove unused parameters from _gdata_service_query()

 gdata/gdata-private.h                              |    4 ----
 gdata/gdata-service.c                              |    7 +++----
 gdata/services/picasaweb/gdata-picasaweb-service.c |    2 +-
 3 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/gdata/gdata-private.h b/gdata/gdata-private.h
index aa7af28..71d825a 100644
--- a/gdata/gdata-private.h
+++ b/gdata/gdata-private.h
@@ -50,11 +50,7 @@ void _gdata_service_set_authenticated (GDataService *self, gboolean authenticate
 SoupMessage *_gdata_service_build_message (GDataService *self, const gchar *method, const gchar *uri, const gchar *etag, gboolean etag_if_match);
 guint _gdata_service_send_message (GDataService *self, SoupMessage *message, GCancellable *cancellable, GError **error);
 SoupMessage *_gdata_service_query (GDataService *self, const gchar *feed_uri, GDataQuery *query, GCancellable *cancellable,
-                                   GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
                                    GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
-void _gdata_service_query_async (GDataService *self, const gchar *feed_uri, GDataQuery *query, GType entry_type, GCancellable *cancellable,
-                                 GDataQueryProgressCallback progress_callback, gpointer progress_user_data,
-                                 GAsyncReadyCallback callback, gpointer user_data, GSimpleAsyncThreadFunc query_thread);
 const gchar *_gdata_service_get_scheme (void);
 GDataLogLevel _gdata_service_get_log_level (void);
 
diff --git a/gdata/gdata-service.c b/gdata/gdata-service.c
index 8514af4..a8ad4f8 100644
--- a/gdata/gdata-service.c
+++ b/gdata/gdata-service.c
@@ -1061,8 +1061,7 @@ gdata_service_query_finish (GDataService *self, GAsyncResult *async_result, GErr
 /* Does the bulk of the work of gdata_service_query. Split out because certain queries (such as that done by
  * gdata_service_query_single_entry()) only return a single entry, and thus need special parsing code. */
 SoupMessage *
-_gdata_service_query (GDataService *self, const gchar *feed_uri, GDataQuery *query, GCancellable *cancellable,
-                      GDataQueryProgressCallback progress_callback, gpointer progress_user_data, GError **error)
+_gdata_service_query (GDataService *self, const gchar *feed_uri, GDataQuery *query, GCancellable *cancellable, GError **error)
 {
 	SoupMessage *message;
 	guint status;
@@ -1159,7 +1158,7 @@ gdata_service_query (GDataService *self, const gchar *feed_uri, GDataQuery *quer
 	g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (cancellable), FALSE);
 	g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
 
-	message = _gdata_service_query (self, feed_uri, query, cancellable, progress_callback, progress_user_data, error);
+	message = _gdata_service_query (self, feed_uri, query, cancellable, error);
 	if (message == NULL)
 		return NULL;
 
@@ -1234,7 +1233,7 @@ gdata_service_query_single_entry (GDataService *self, const gchar *entry_id, GDa
 	g_assert (klass->get_entry_uri != NULL);
 
 	entry_uri = klass->get_entry_uri (entry_id);
-	message = _gdata_service_query (GDATA_SERVICE (self), entry_uri, query, cancellable, NULL, NULL, error);
+	message = _gdata_service_query (GDATA_SERVICE (self), entry_uri, query, cancellable, error);
 	g_free (entry_uri);
 
 	if (message == NULL)
diff --git a/gdata/services/picasaweb/gdata-picasaweb-service.c b/gdata/services/picasaweb/gdata-picasaweb-service.c
index 2b09231..0f3e4f8 100644
--- a/gdata/services/picasaweb/gdata-picasaweb-service.c
+++ b/gdata/services/picasaweb/gdata-picasaweb-service.c
@@ -136,7 +136,7 @@ gdata_picasaweb_service_get_user (GDataPicasaWebService *self, const gchar *user
 		return NULL;
 	}
 
-	message = _gdata_service_query (GDATA_SERVICE (self), uri, NULL, cancellable, NULL, NULL, error);
+	message = _gdata_service_query (GDATA_SERVICE (self), uri, NULL, cancellable, error);
 	g_free (uri);
 
 	if (message == NULL)



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