[calls] call: Get rid of get_contact() API



commit 34b447a4caa31cecb27b9f520a4989bcfde749d7
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Wed Feb 9 17:46:43 2022 +0100

    call: Get rid of get_contact() API
    
    This function isn't used anywhere since the recent refactoring, so let's drop
    this dead code.

 src/calls-call.c | 25 -------------------------
 src/calls-call.h |  3 ---
 2 files changed, 28 deletions(-)
---
diff --git a/src/calls-call.c b/src/calls-call.c
index 7c5f9162..0fbaedd5 100644
--- a/src/calls-call.c
+++ b/src/calls-call.c
@@ -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)
diff --git a/src/calls-call.h b/src/calls-call.h
index 999ef7ac..022e9bc4 100644
--- a/src/calls-call.h
+++ b/src/calls-call.h
@@ -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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]