[epiphany] ephy-profile-migration: remove useless return value
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-profile-migration: remove useless return value
- Date: Tue, 9 Mar 2010 16:15:20 +0000 (UTC)
commit 3423f0766d8b935e0c35b6d379bd345f14dc0bcb
Author: Diego Escalante Urrelo <descalante igalia com>
Date: Tue Mar 9 11:09:29 2010 -0500
ephy-profile-migration: remove useless return value
_ephy_profile_query_form_auth_data is async, doesn't return anything.
lib/ephy-profile-migration.c | 16 +++++++---------
lib/ephy-profile-migration.h | 2 +-
2 files changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/lib/ephy-profile-migration.c b/lib/ephy-profile-migration.c
index 857d4a4..eee329a 100644
--- a/lib/ephy-profile-migration.c
+++ b/lib/ephy-profile-migration.c
@@ -1,4 +1,5 @@
/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
+/* vim: set sw=2 ts=2 sts=2 et: */
/*
* Copyright © 2009 Xan López
*
@@ -488,7 +489,7 @@ _ephy_profile_store_form_auth_data (const char *uri,
g_free (fake_uri_str);
}
-GList*
+void
_ephy_profile_query_form_auth_data (const char *uri,
const char *form_username,
const char *form_password,
@@ -498,17 +499,16 @@ _ephy_profile_query_form_auth_data (const char *uri,
{
SoupURI *key;
char *key_str;
- GList *results = NULL;
- g_return_val_if_fail (uri, NULL);
- g_return_val_if_fail (form_username, NULL);
- g_return_val_if_fail (form_password, NULL);
+ g_return_if_fail (uri);
+ g_return_if_fail (form_username);
+ g_return_if_fail (form_password);
key = soup_uri_new (uri);
- if (key == NULL)
- return NULL;
+ g_return_if_fail (key);
normalize_and_prepare_uri (key, form_username, form_password);
+
key_str = soup_uri_to_string (key, FALSE);
LOG ("Querying Keyring: %s", key_str);
@@ -524,8 +524,6 @@ _ephy_profile_query_form_auth_data (const char *uri,
destroy_data);
soup_uri_free (key);
g_free (key_str);
-
- return results;
}
#define PROFILE_MIGRATION_FILE ".migrated"
diff --git a/lib/ephy-profile-migration.h b/lib/ephy-profile-migration.h
index 33d14bf..3716f24 100644
--- a/lib/ephy-profile-migration.h
+++ b/lib/ephy-profile-migration.h
@@ -34,7 +34,7 @@ void _ephy_profile_store_form_auth_data (const char *uri,
const char *username,
const char *password);
-GList*
+void
_ephy_profile_query_form_auth_data (const char *uri,
const char *form_username,
const char *form_password,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]