aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-08-20 01:57:52 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-08-20 01:57:52 +0800
commit72200bfb3f263f84241b44ee91513f7d01db546b (patch)
treeeff125253aee0f854049cd039364b31ac9e49000 /calendar
parent705be922290018fd677d85b29d57e14c2bb21b8b (diff)
downloadgsoc2013-evolution-72200bfb3f263f84241b44ee91513f7d01db546b.tar
gsoc2013-evolution-72200bfb3f263f84241b44ee91513f7d01db546b.tar.gz
gsoc2013-evolution-72200bfb3f263f84241b44ee91513f7d01db546b.tar.bz2
gsoc2013-evolution-72200bfb3f263f84241b44ee91513f7d01db546b.tar.lz
gsoc2013-evolution-72200bfb3f263f84241b44ee91513f7d01db546b.tar.xz
gsoc2013-evolution-72200bfb3f263f84241b44ee91513f7d01db546b.tar.zst
gsoc2013-evolution-72200bfb3f263f84241b44ee91513f7d01db546b.zip
Remove unused e_auth_new_cal_from_uri().
Diffstat (limited to 'calendar')
-rw-r--r--calendar/common/authentication.c65
-rw-r--r--calendar/common/authentication.h1
2 files changed, 0 insertions, 66 deletions
diff --git a/calendar/common/authentication.c b/calendar/common/authentication.c
index 801a3907bf..675754c5f0 100644
--- a/calendar/common/authentication.c
+++ b/calendar/common/authentication.c
@@ -124,68 +124,3 @@ e_auth_new_cal_from_source (ESource *source, ECalSourceType type)
return cal;
}
-
-ECal *
-e_auth_new_cal_from_uri (const gchar *uri, ECalSourceType type)
-{
- ESourceGroup *group = NULL;
- ESource *source = NULL;
- ECal *cal;
- ESourceList *source_list = NULL;
-
- /* try to find the source in the source list in GConf */
- source_list = g_hash_table_lookup (source_lists_hash, &type);
- if (!source_list) {
- if (e_cal_get_sources (&source_list, type, NULL)) {
- if (!source_lists_hash)
- source_lists_hash = g_hash_table_new (g_int_hash, g_int_equal);
-
- g_hash_table_insert (source_lists_hash, &type, source_list);
- }
- }
-
- if (source_list) {
- GSList *gl;
-
- for (gl = e_source_list_peek_groups (source_list);
- gl != NULL && source == NULL; gl = gl->next) {
- GSList *sl;
-
- for (sl = e_source_group_peek_sources (gl->data); sl != NULL; sl = sl->next) {
- gchar *source_uri;
-
- source_uri = e_source_get_uri (sl->data);
- if (source_uri) {
- if (!strcmp (source_uri, uri)) {
- g_free (source_uri);
- source = g_object_ref (sl->data);
- break;
- }
-
- g_free (source_uri);
- }
- }
- }
- }
-
- if (!source) {
- group = e_source_group_new ("", uri);
- source = e_source_new ("", "");
- e_source_set_group (source, group);
-
- /* we explicitly check for groupwise:// uris, to force authentication on them */
- if (!strncmp (uri, "groupwise://", strlen ("groupwise://"))) {
- e_source_set_property (source, "auth", "1");
- e_source_set_property (source, "auth-domain", "Groupwise");
- /* FIXME: need to retrieve the username */
- }
- }
-
- cal = e_auth_new_cal_from_source (source, type);
-
- g_object_unref (source);
- if (group)
- g_object_unref (group);
-
- return cal;
-}
diff --git a/calendar/common/authentication.h b/calendar/common/authentication.h
index e4e0599878..d48ca3edc2 100644
--- a/calendar/common/authentication.h
+++ b/calendar/common/authentication.h
@@ -29,7 +29,6 @@
ECal *e_auth_new_cal_from_default (ECalSourceType type);
ECal *e_auth_new_cal_from_source (ESource *source, ECalSourceType type);
-ECal *e_auth_new_cal_from_uri (const gchar *uri, ECalSourceType type);
void e_auth_cal_forget_password (ECal *ecal);
#endif