[calls] call: Remove API for silencing
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] call: Remove API for silencing
- Date: Tue, 1 Feb 2022 05:50:58 +0000 (UTC)
commit 5bca8eabfe0d5f787096def32448a3c8bd223029
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Mon Jan 31 17:19:09 2022 +0100
call: Remove API for silencing
This now lives in CallsUiCallData and got removed after the last user of the
code (CallsDbusManager) switched.
src/calls-call.c | 49 -------------------------------------------------
src/calls-call.h | 2 --
2 files changed, 51 deletions(-)
---
diff --git a/src/calls-call.c b/src/calls-call.c
index 575e2925..7c5f9162 100644
--- a/src/calls-call.c
+++ b/src/calls-call.c
@@ -54,7 +54,6 @@ enum {
PROP_NAME,
PROP_STATE,
PROP_PROTOCOL,
- PROP_SILENCED,
N_PROPS,
};
@@ -71,7 +70,6 @@ typedef struct {
char *name;
CallsCallState state;
gboolean inbound;
- gboolean silenced;
} CallsCallPrivate;
G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (CallsCall, calls_call, G_TYPE_OBJECT)
@@ -165,10 +163,6 @@ calls_call_get_property (GObject *object,
g_value_set_string (value, calls_call_get_protocol (self));
break;
- case PROP_SILENCED:
- g_value_set_boolean (value, calls_call_get_silenced (self));
- break;
-
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
}
@@ -243,13 +237,6 @@ calls_call_class_init (CallsCallClass *klass)
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
- properties[PROP_SILENCED] =
- g_param_spec_boolean ("silenced",
- "Silenced",
- "Whether the call ringing should be silenced",
- FALSE,
- G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
-
g_object_class_install_properties (object_class, N_PROPS, properties);
/**
@@ -536,42 +523,6 @@ calls_call_get_contact (CallsCall *self)
calls_call_get_id (self));
}
-/**
- * calls_call_silence_ring:
- * @self: a #CallsCall
- *
- * Inhibit ringing
- */
-void
-calls_call_silence_ring (CallsCall *self)
-{
- CallsCallPrivate *priv = calls_call_get_instance_private (self);
-
- g_return_if_fail (CALLS_IS_CALL (self));
- g_return_if_fail (calls_call_get_state (self) == CALLS_CALL_STATE_INCOMING);
-
- if (priv->silenced)
- return;
-
- priv->silenced = TRUE;
- g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_SILENCED]);
-}
-
-/**
- * calls_call_get_silenced:
- * @self: a #CallsCall
- *
- * Returns: %TRUE if call has been silenced to not ring, %FALSE otherwise
- */
-gboolean
-calls_call_get_silenced (CallsCall *self)
-{
- CallsCallPrivate *priv = calls_call_get_instance_private (self);
-
- g_return_val_if_fail (CALLS_IS_CALL (self), FALSE);
-
- return priv->silenced;
-}
gboolean
calls_call_state_parse_nick (CallsCallState *state,
diff --git a/src/calls-call.h b/src/calls-call.h
index d70a2ab5..999ef7ac 100644
--- a/src/calls-call.h
+++ b/src/calls-call.h
@@ -75,8 +75,6 @@ gboolean calls_call_can_dtmf (CallsCall *self);
void calls_call_send_dtmf_tone (CallsCall *self,
char key);
CallsBestMatch *calls_call_get_contact (CallsCall *self);
-void calls_call_silence_ring (CallsCall *self);
-gboolean calls_call_get_silenced (CallsCall *self);
gboolean calls_call_state_parse_nick (CallsCallState *state,
const char *nick);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]