[gnome-online-accounts] oauth2: Clean up
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] oauth2: Clean up
- Date: Fri, 20 Dec 2013 16:10:07 +0000 (UTC)
commit e712e7ba582061ab725f47b5ac89e0423263eee9
Author: Debarshi Ray <debarshir gnome org>
Date: Fri Dec 20 13:31:42 2013 +0100
oauth2: Clean up
There is no need to check if get_scope is implemented because there is
a default implementation that does the right thing.
This was removed in one of the versions of the previous patch, but it
snuck back in during the review.
https://bugzilla.gnome.org/show_bug.cgi?id=704564
src/goabackend/goaoauth2provider.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/goabackend/goaoauth2provider.c b/src/goabackend/goaoauth2provider.c
index 3ee1d39..e8a27fd 100644
--- a/src/goabackend/goaoauth2provider.c
+++ b/src/goabackend/goaoauth2provider.c
@@ -395,9 +395,7 @@ const gchar *
goa_oauth2_provider_get_scope (GoaOAuth2Provider *provider)
{
g_return_val_if_fail (GOA_IS_OAUTH2_PROVIDER (provider), NULL);
- if (GOA_OAUTH2_PROVIDER_GET_CLASS (provider)->get_scope)
- return GOA_OAUTH2_PROVIDER_GET_CLASS (provider)->get_scope (provider);
- return NULL;
+ return GOA_OAUTH2_PROVIDER_GET_CLASS (provider)->get_scope (provider);
}
/* ---------------------------------------------------------------------------------------------------- */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]