From bb8f662a014bcf17874f7a7abf34b7c3a7797c1d Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Mon, 31 Jan 2022 17:03:54 +0100 Subject: [PATCH] ui-call-data: Remove get_call() function No need to expose the internal CallsCall object as all properties relevant for the UI are proxied out anyway. --- src/calls-ui-call-data.c | 9 --------- src/calls-ui-call-data.h | 1 - 2 files changed, 10 deletions(-) diff --git a/src/calls-ui-call-data.c b/src/calls-ui-call-data.c index 647d0e7..895b8f3 100644 --- a/src/calls-ui-call-data.c +++ b/src/calls-ui-call-data.c @@ -536,15 +536,6 @@ calls_ui_call_data_new (CallsCall *call) return g_object_new (CALLS_TYPE_UI_CALL_DATA, "call", call, NULL); } - -CallsCall * -calls_ui_call_data_get_call (CallsUiCallData *self) -{ - g_return_val_if_fail (CALLS_IS_UI_CALL_DATA (self), NULL); - - return self->call; -} - /** * calls_ui_call_data_silence_ring: * @self: a #CallsUiCallData diff --git a/src/calls-ui-call-data.h b/src/calls-ui-call-data.h index bf73a4b..411258b 100644 --- a/src/calls-ui-call-data.h +++ b/src/calls-ui-call-data.h @@ -36,7 +36,6 @@ G_BEGIN_DECLS G_DECLARE_FINAL_TYPE (CallsUiCallData, calls_ui_call_data, CALLS, UI_CALL_DATA, GObject) CallsUiCallData *calls_ui_call_data_new (CallsCall *call); -CallsCall *calls_ui_call_data_get_call (CallsUiCallData *self); void calls_ui_call_data_silence_ring (CallsUiCallData *self); gboolean calls_ui_call_data_get_silenced (CallsUiCallData *self); CuiCallState calls_call_state_to_cui_call_state (CallsCallState state);