aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/e-cal-model.c36
-rw-r--r--calendar/gui/e-cal-model.h3
2 files changed, 0 insertions, 39 deletions
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index d990bdbaf0..62c9188077 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -2653,42 +2653,6 @@ e_cal_model_list_clients (ECalModel *model)
return g_queue_peek_head_link (&results);
}
-/**
- * e_cal_model_get_client_for_source:
- * @model: an #ECalModel
- * @source: an #ESource
- */
-ECalClient *
-e_cal_model_get_client_for_source (ECalModel *model,
- ESource *source)
-{
- ECalClient *match = NULL;
- GList *list, *link;
-
- g_return_val_if_fail (E_IS_CAL_MODEL (model), NULL);
- g_return_val_if_fail (E_IS_SOURCE (source), NULL);
-
- list = cal_model_clients_list (model);
-
- for (link = list; link != NULL; link = g_list_next (link)) {
- ClientData *client_data = link->data;
- ESource *client_source;
- EClient *client;
-
- client = E_CLIENT (client_data->client);
- client_source = e_client_get_source (client);
-
- if (e_source_equal (source, client_source)) {
- match = client_data->client;
- break;
- }
- }
-
- g_list_free_full (list, (GDestroyNotify) client_data_unref);
-
- return match;
-}
-
static ECalModelComponent *
search_by_id_and_client (ECalModelPrivate *priv,
ECalClient *client,
diff --git a/calendar/gui/e-cal-model.h b/calendar/gui/e-cal-model.h
index 3827f25b18..f42ddd2937 100644
--- a/calendar/gui/e-cal-model.h
+++ b/calendar/gui/e-cal-model.h
@@ -254,9 +254,6 @@ ECalClient * e_cal_model_get_default_client (ECalModel *model);
void e_cal_model_set_default_client (ECalModel *model,
ECalClient *client);
GList * e_cal_model_list_clients (ECalModel *model);
-ECalClient * e_cal_model_get_client_for_source
- (ECalModel *model,
- ESource *source);
void e_cal_model_add_client (ECalModel *model,
ECalClient *cal_client);
void e_cal_model_remove_client (ECalModel *model,