1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-14 00:17:35 +00:00

call: Get rid of get_contact() API

This function isn't used anywhere since the recent refactoring, so let's drop
this dead code.
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-02-09 17:46:43 +01:00
parent d7ba7927d7
commit 34b447a4ca
2 changed files with 0 additions and 28 deletions

View file

@ -24,7 +24,6 @@
#include "calls-call.h"
#include "calls-message-source.h"
#include "calls-manager.h"
#include "enum-types.h"
#include "util.h"
@ -500,30 +499,6 @@ calls_call_send_dtmf_tone (CallsCall *self,
CALLS_CALL_GET_CLASS (self)->send_dtmf_tone (self, key);
}
/**
* calls_call_get_contact:
* @self: a #CallsCall
*
* This a convenience function to optain the #CallsBestMatch matching the
* phone id of the #CallsCall.
*
* Returns: (transfer full): A #CallsBestMatch
*/
CallsBestMatch *
calls_call_get_contact (CallsCall *self)
{
CallsContactsProvider *contacts_provider;
g_return_val_if_fail (CALLS_IS_CALL (self), NULL);
contacts_provider =
calls_manager_get_contacts_provider (calls_manager_get_default ());
return calls_contacts_provider_lookup_id (contacts_provider,
calls_call_get_id (self));
}
gboolean
calls_call_state_parse_nick (CallsCallState *state,
const char *nick)

View file

@ -25,8 +25,6 @@
#ifndef CALLS_CALL_H__
#define CALLS_CALL_H__
#include "calls-best-match.h"
#include <glib-object.h>
G_BEGIN_DECLS
@ -74,7 +72,6 @@ void calls_call_hang_up (CallsCall *self);
gboolean calls_call_can_dtmf (CallsCall *self);
void calls_call_send_dtmf_tone (CallsCall *self,
char key);
CallsBestMatch *calls_call_get_contact (CallsCall *self);
gboolean calls_call_state_parse_nick (CallsCallState *state,
const char *nick);