diff options
Diffstat (limited to 'calendar/pcs/cal-backend.c')
-rw-r--r-- | calendar/pcs/cal-backend.c | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/calendar/pcs/cal-backend.c b/calendar/pcs/cal-backend.c index 89049d5f8c..beca760be1 100644 --- a/calendar/pcs/cal-backend.c +++ b/calendar/pcs/cal-backend.c @@ -399,27 +399,6 @@ cal_backend_get_alarms_for_object (CalBackend *backend, const char *uid, return (* CLASS (backend)->get_alarms_for_object) (backend, uid, start, end, alarms); } - -char *cal_backend_get_uid_by_pilot_id (CalBackend *backend, unsigned long int pilot_id) -{ - g_return_val_if_fail (backend != NULL, FALSE); - g_return_val_if_fail (IS_CAL_BACKEND (backend), FALSE); - g_assert (CLASS(backend)->get_uid_by_pilot_id != NULL); - return (* CLASS(backend)->get_uid_by_pilot_id) (backend, pilot_id); -} - - -void cal_backend_update_pilot_id (CalBackend *backend, const char *uid, - unsigned long int pilot_id, - unsigned long int pilot_status) -{ - g_return_if_fail (backend != NULL); - g_return_if_fail (IS_CAL_BACKEND (backend)); - g_assert (CLASS(backend)->update_pilot_id != NULL); - (* CLASS(backend)->update_pilot_id) (backend, uid, - pilot_id, pilot_status); -} - /* Internal logging stuff */ typedef enum { CAL_BACKEND_UPDATED, @@ -700,12 +679,13 @@ cal_backend_update_object (CalBackend *backend, const char *uid, const char *cal g_return_val_if_fail (calobj != NULL, FALSE); g_assert (CLASS (backend)->update_object != NULL); - cot = (* CLASS (backend)->get_type_by_uid) (backend, uid); result = (* CLASS (backend)->update_object) (backend, uid, calobj); - if (result) + if (result) { + cot = (* CLASS (backend)->get_type_by_uid) (backend, uid); cal_backend_log_entry (backend, uid, cot, CAL_BACKEND_UPDATED); - + } + return result; } |