[gnome-contacts] ContactsContact: remove unused method is_callable.
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] ContactsContact: remove unused method is_callable.
- Date: Sun, 24 Dec 2017 09:00:14 +0000 (UTC)
commit ce2f8dfd8e22e2adb54099335fcfdc86be51bb71
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sun Dec 24 09:59:23 2017 +0100
ContactsContact: remove unused method is_callable.
src/contacts-contact.vala | 12 ------------
1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 186802e..ae0604e 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -993,18 +993,6 @@ public class Contacts.Contact : GLib.Object {
return null;
}
- public Account? is_callable (string proto, string id) {
- Tpf.Persona? t_persona = this.find_im_persona (proto, id);
- if (t_persona != null && t_persona.contact != null) {
- unowned TelepathyGLib.Capabilities caps =
- t_persona.contact.get_capabilities ();
- if (caps.supports_audio_call (TelepathyGLib.HandleType.CONTACT))
- return (t_persona.store as Tpf.PersonaStore).account;
- }
-
- return null;
- }
-
public static async Persona? create_primary_persona_for_details (Folks.PersonaStore store,
HashTable<string, Value?> details) throws GLib.Error {
var p = yield store.add_persona_from_details (details);
return p;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]