[libgdata] youtube: Remove GDataYouTubeService:youtube-user



commit 195819c7ee35dedbb0e55e0832b970977a21867d
Author: Philip Withnall <philip tecnocode co uk>
Date:   Wed Dec 1 20:56:19 2010 +0000

    youtube: Remove GDataYouTubeService:youtube-user
    
    Due to standardisation on the ClientLogin interface for authentication in the
    YouTube service, the user's YouTube username is no longer accessible to
    libgdata (and would be largely irrelevant even if it was). Consequently, the
    following API has been removed:
     â?¢ GDataYouTubeService:youtube-user
     â?¢ gdata_youtube_service_get_youtube_user()
    
    See also: bgo#634033

 docs/reference/gdata-sections.txt              |    1 -
 gdata/gdata.symbols                            |    1 -
 gdata/services/youtube/gdata-youtube-service.c |   35 +-----------------------
 gdata/services/youtube/gdata-youtube-service.h |    1 -
 4 files changed, 1 insertions(+), 37 deletions(-)
---
diff --git a/docs/reference/gdata-sections.txt b/docs/reference/gdata-sections.txt
index 46545b5..ac77214 100644
--- a/docs/reference/gdata-sections.txt
+++ b/docs/reference/gdata-sections.txt
@@ -194,7 +194,6 @@ gdata_youtube_service_get_categories
 gdata_youtube_service_get_categories_async
 gdata_youtube_service_get_categories_finish
 gdata_youtube_service_get_developer_key
-gdata_youtube_service_get_youtube_user
 <SUBSECTION Standard>
 GDATA_TYPE_YOUTUBE_SERVICE_ERROR
 GDATA_TYPE_YOUTUBE_STANDARD_FEED_TYPE
diff --git a/gdata/gdata.symbols b/gdata/gdata.symbols
index b2f0dce..da10b9f 100644
--- a/gdata/gdata.symbols
+++ b/gdata/gdata.symbols
@@ -111,7 +111,6 @@ gdata_youtube_service_query_related
 gdata_youtube_service_query_related_async
 gdata_youtube_service_upload_video
 gdata_youtube_service_get_developer_key
-gdata_youtube_service_get_youtube_user
 gdata_youtube_video_get_type
 gdata_youtube_video_new
 gdata_youtube_video_get_view_count
diff --git a/gdata/services/youtube/gdata-youtube-service.c b/gdata/services/youtube/gdata-youtube-service.c
index bf5a80c..5d0dd7e 100644
--- a/gdata/services/youtube/gdata-youtube-service.c
+++ b/gdata/services/youtube/gdata-youtube-service.c
@@ -91,13 +91,11 @@ static void parse_error_response (GDataService *self, GDataOperationType operati
                                   const gchar *response_body, gint length, GError **error);
 
 struct _GDataYouTubeServicePrivate {
-	gchar *youtube_user;
 	gchar *developer_key;
 };
 
 enum {
-	PROP_DEVELOPER_KEY = 1,
-	PROP_YOUTUBE_USER
+	PROP_DEVELOPER_KEY = 1
 };
 
 G_DEFINE_TYPE_WITH_CODE (GDataYouTubeService, gdata_youtube_service, GDATA_TYPE_SERVICE, G_IMPLEMENT_INTERFACE (GDATA_TYPE_BATCHABLE, NULL))
@@ -131,18 +129,6 @@ gdata_youtube_service_class_init (GDataYouTubeServiceClass *klass)
 	                                                      "Developer key", "Your YouTube developer API key.",
 	                                                      NULL,
 	                                                      G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
-
-	/**
-	 * GDataYouTubeService:youtube-user:
-	 *
-	 * The YouTube username of the authenticated user, or %NULL. This may differ from #GDataService:username, due to the work done when
-	 * YouTube was converted to use Google's centralised login system.
-	 **/
-	g_object_class_install_property (gobject_class, PROP_YOUTUBE_USER,
-	                                 g_param_spec_string ("youtube-user",
-	                                                      "YouTube username", "The YouTube account username.",
-	                                                      NULL,
-	                                                      G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
 }
 
 static void
@@ -156,7 +142,6 @@ gdata_youtube_service_finalize (GObject *object)
 {
 	GDataYouTubeServicePrivate *priv = GDATA_YOUTUBE_SERVICE (object)->priv;
 
-	g_free (priv->youtube_user);
 	g_free (priv->developer_key);
 
 	/* Chain up to the parent class */
@@ -172,9 +157,6 @@ gdata_youtube_service_get_property (GObject *object, guint property_id, GValue *
 		case PROP_DEVELOPER_KEY:
 			g_value_set_string (value, priv->developer_key);
 			break;
-		case PROP_YOUTUBE_USER:
-			g_value_set_string (value, priv->youtube_user);
-			break;
 		default:
 			/* We don't have any other property... */
 			G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
@@ -891,21 +873,6 @@ gdata_youtube_service_get_developer_key (GDataYouTubeService *self)
 }
 
 /**
- * gdata_youtube_service_get_youtube_user:
- * @self: a #GDataYouTubeService
- *
- * Gets the #GDataYouTubeService:youtube-user property from the #GDataYouTubeService.
- *
- * Return value: the YouTube username property
- **/
-const gchar *
-gdata_youtube_service_get_youtube_user (GDataYouTubeService *self)
-{
-	g_return_val_if_fail (GDATA_IS_YOUTUBE_SERVICE (self), NULL);
-	return self->priv->youtube_user;
-}
-
-/**
  * gdata_youtube_service_get_categories:
  * @self: a #GDataYouTubeService
  * @cancellable: a #GCancellable, or %NULL
diff --git a/gdata/services/youtube/gdata-youtube-service.h b/gdata/services/youtube/gdata-youtube-service.h
index 67c1427..5a7ba58 100644
--- a/gdata/services/youtube/gdata-youtube-service.h
+++ b/gdata/services/youtube/gdata-youtube-service.h
@@ -139,7 +139,6 @@ GDataYouTubeVideo *gdata_youtube_service_upload_video_finish (GDataYouTubeServic
                                                               GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
 
 const gchar *gdata_youtube_service_get_developer_key (GDataYouTubeService *self) G_GNUC_PURE;
-const gchar *gdata_youtube_service_get_youtube_user (GDataYouTubeService *self) G_GNUC_PURE;
 
 GDataAPPCategories *gdata_youtube_service_get_categories (GDataYouTubeService *self, GCancellable *cancellable,
                                                           GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;



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