Remove signon_identity_verify_user()
authorAlberto Mardegan <mardy@users.sourceforge.net>
Wed, 30 Nov 2011 10:30:29 +0000 (12:30 +0200)
committerAlberto Mardegan <mardy@users.sourceforge.net>
Wed, 30 Nov 2011 10:30:29 +0000 (12:30 +0200)
The unit test was provoking a crash: the function signature is wrong,
because on signond side this method takes a dictionary parameter, while
the client API has a username parameters.
Resolve this conflict by removing this function; we'll add it back
later, with the correct signature, if and when needed.

libsignon-glib/signon-identity.c
libsignon-glib/signon-identity.h
tests/check_signon.c

index 4a3513214959e01c17b9993504d56aeaed658404..94e0426ffe6e643480c430beb28514b0514fd9fd 100644 (file)
@@ -940,12 +940,6 @@ identity_verify_ready_cb (gpointer object, const GError *error, gpointer user_da
                                               identity_verify_reply,
                                               cb_data);
             break;
-        case SIGNON_VERIFY_USER:
-            SSO_Identity_verify_user_async (priv->proxy,
-                                            operation_data->params,
-                                            identity_verify_reply,
-                                            cb_data);
-            break;
         default: g_critical ("Wrong operation code");
         };
     }
@@ -987,27 +981,6 @@ identity_verify_data(SignonIdentity *self,
                                     operation_data);
 }
 
-/**
- * signon_identity_verify_user:
- * @self: the #SignonIdentity.
- * @username: the username to be verified.
- * @cb: (scope async): callback.
- * @user_data: user_data.
- *
- * Verifies the given username.
- */
-void signon_identity_verify_user(SignonIdentity *self,
-                                const gchar *username,
-                                SignonIdentityVerifyCb cb,
-                                gpointer user_data)
-{
-    identity_verify_data (self,
-                          username,
-                          SIGNON_VERIFY_USER,
-                          cb,
-                          user_data);
-}
-
 /**
  * signon_identity_verify_secret:
  * @self: the #SignonIdentity.
index 565ace157a62f617304d9b3a7a1036186ceaad70..324680cb949506fae7dfc3d91e932c87d42dcfb7 100644 (file)
@@ -101,11 +101,6 @@ typedef void (*SignonIdentityVerifyCb) (SignonIdentity *self,
                                         const GError *error,
                                         gpointer user_data);
 
-void signon_identity_verify_user(SignonIdentity *self,
-                                const gchar *username,
-                                SignonIdentityVerifyCb cb,
-                                gpointer user_data);
-
 void signon_identity_verify_secret(SignonIdentity *self,
                                   const gchar *secret,
                                   SignonIdentityVerifyCb cb,
index 6c5c894d4a80963a852874fb2fe5d3332e550720..21ccc4f7afe3735a9a775ca45129f216116900db 100644 (file)
@@ -746,13 +746,6 @@ START_TEST(test_verify_secret_identity)
 
     g_main_loop_run (main_loop);
 
-    signon_identity_verify_user(idty,
-                               username,
-                               identity_verify_username_cb,
-                               main_loop);
-
-    g_main_loop_run (main_loop);
-
     g_hash_table_destroy (methods);
     g_object_unref (idty);
     end_test ();