aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-client
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-09-01 10:55:13 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-09-01 10:55:13 +0800
commit3441e17ab919b707fea1920feef7cc43874fec2e (patch)
treee75bf13fd2bd4d403d7db77aa34f17b6958adecb /calendar/cal-client
parente60c558b2552803e624a5cef4fccdd645f2021e0 (diff)
downloadgsoc2013-evolution-3441e17ab919b707fea1920feef7cc43874fec2e.tar
gsoc2013-evolution-3441e17ab919b707fea1920feef7cc43874fec2e.tar.gz
gsoc2013-evolution-3441e17ab919b707fea1920feef7cc43874fec2e.tar.bz2
gsoc2013-evolution-3441e17ab919b707fea1920feef7cc43874fec2e.tar.lz
gsoc2013-evolution-3441e17ab919b707fea1920feef7cc43874fec2e.tar.xz
gsoc2013-evolution-3441e17ab919b707fea1920feef7cc43874fec2e.tar.zst
gsoc2013-evolution-3441e17ab919b707fea1920feef7cc43874fec2e.zip
No need to spit a warning if removal fails. (event_editor_destroy): Free
2000-08-31 Federico Mena Quintero <federico@helixcode.com> * gui/event-editor.c (file_delete_cb): No need to spit a warning if removal fails. (event_editor_destroy): Free the exception clist data. Unref the calendar client here. (close_dialog): Just call gtk_object_destroy() on the event editor; the destroy handler will free everything else. * cal-client/cal-client.c (cal_client_object_exists): Removed function; this is not useful because we operate asynchronously. * gui/e-day-view.c (e_day_view_on_delete_appointment): No need to spit a warning if removal fails. * gui/e-week-view.c (e_week_view_on_delete_appointment): Likewise. * gui/calendar-model.c (calendar_model_delete_task): Likewise. svn path=/trunk/; revision=5155
Diffstat (limited to 'calendar/cal-client')
-rw-r--r--calendar/cal-client/cal-client.c31
-rw-r--r--calendar/cal-client/cal-client.h1
2 files changed, 0 insertions, 32 deletions
diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c
index d64026d6b2..65c0c4aea4 100644
--- a/calendar/cal-client/cal-client.c
+++ b/calendar/cal-client/cal-client.c
@@ -605,37 +605,6 @@ cal_client_get_n_objects (CalClient *client, CalObjType type)
}
/**
- * cal_client_object_exists:
- * @client: A calendar client
- * @uid: Unique identifier for a calendar component
- *
- * Checks to see if a uid exists in the backend
- *
- * Return value: True or false if uid exists and can be obtained
- **/
-gboolean
-cal_client_object_exists (CalClient *client, const char *uid)
-{
- CalComponent *comp;
- CalClientGetStatus status;
-
- status = cal_client_get_object (client, uid, &comp);
-
- switch (status) {
- case CAL_CLIENT_GET_SUCCESS:
- gtk_object_unref (GTK_OBJECT (comp));
- return TRUE;
-
- case CAL_CLIENT_GET_SYNTAX_ERROR:
- case CAL_CLIENT_GET_NOT_FOUND:
- return FALSE;
-
- default:
- g_assert_not_reached ();
- }
-}
-
-/**
* cal_client_get_object:
* @client: A calendar client.
* @uid: Unique identifier for a calendar component.
diff --git a/calendar/cal-client/cal-client.h b/calendar/cal-client/cal-client.h
index bc08b2497a..6747c7488e 100644
--- a/calendar/cal-client/cal-client.h
+++ b/calendar/cal-client/cal-client.h
@@ -88,7 +88,6 @@ gboolean cal_client_is_loaded (CalClient *client);
int cal_client_get_n_objects (CalClient *client, CalObjType type);
-gboolean cal_client_object_exists (CalClient *client, const char *uid);
CalClientGetStatus cal_client_get_object (CalClient *client,
const char *uid,
CalComponent **comp);