1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-13 16:07:36 +00:00

call: Remove unused calls_call_state_to_string()

We're now using cui_call_state_to_string(), so this is unused.
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-01-31 16:59:48 +01:00
parent fa5969892e
commit b9e49986f0
2 changed files with 0 additions and 23 deletions

View file

@ -573,27 +573,6 @@ calls_call_get_silenced (CallsCall *self)
return priv->silenced;
}
void
calls_call_state_to_string (GString *string,
CallsCallState state)
{
GEnumClass *klass;
GEnumValue *value;
klass = g_type_class_ref (CALLS_TYPE_CALL_STATE);
value = g_enum_get_value (klass, (gint)state);
if (!value)
return g_string_printf (string,
"Unknown call state (%d)",
(gint)state);
g_string_assign (string, value->value_nick);
string->str[0] = g_ascii_toupper (string->str[0]);
g_type_class_unref (klass);
}
gboolean
calls_call_state_parse_nick (CallsCallState *state,
const char *nick)

View file

@ -78,8 +78,6 @@ CallsBestMatch *calls_call_get_contact (CallsCall *self);
void calls_call_silence_ring (CallsCall *self);
gboolean calls_call_get_silenced (CallsCall *self);
void calls_call_state_to_string (GString *string,
CallsCallState state);
gboolean calls_call_state_parse_nick (CallsCallState *state,
const char *nick);