[gnome-contacts] Cleanup: Remove Contact.get_secondary_string (dead code)
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Cleanup: Remove Contact.get_secondary_string (dead code)
- Date: Mon, 28 Aug 2017 08:29:08 +0000 (UTC)
commit 4cb532975fb9844997616c58931d874c90822369
Author: Niels De Graef <nielsdegraef gmail com>
Date: Mon Aug 28 10:26:45 2017 +0200
Cleanup: Remove Contact.get_secondary_string (dead code)
src/contacts-contact.vala | 43 -------------------------------------------
1 files changed, 0 insertions(+), 43 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 5031328..07b6bdc 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -90,49 +90,6 @@ public class Contacts.Contact : GLib.Object {
}
}
- // Synchronize with get_secondary_string_source ()
- public string? get_secondary_string (out string [] sources = null) {
- var nick = individual.nickname;
- if (is_set (nick)) {
- sources = new string[1];
- sources[0] = "nickname";
- return "\xE2\x80\x9C" + nick + "\xE2\x80\x9D";
- }
-
- foreach (var role_detail in individual.roles) {
- var role = role_detail.value;
-
- if (is_set (role.organisation_name)) {
- if (is_set (role.title)) {
- sources = new string[2];
- sources[0] = "title";
- sources[1] = "organisation-name";
- return "%s, %s".printf (role.title, role.organisation_name);
- } else if (is_set (role.role)) {
- sources = new string[2];
- sources[0] = "role";
- sources[1] = "organisation-name";
- return "%s, %s".printf (role.role, role.organisation_name);
- } else {
- sources = new string[0];
- sources[0] = "organisation-name";
- return role.organisation_name;
- }
- } else if (is_set (role.title)) {
- sources = new string[0];
- sources[0] = "title";
- return role.title;
- } else if (is_set (role.role)) {
- sources = new string[0];
- sources[0] = "role";
- return role.role;
- }
- }
-
- sources = null;
- return null;
- }
-
public static bool persona_has_writable_property (Persona persona, string property) {
// TODO: This should check the writibility on the FakePersona store,
// but that is not availible in folks yet
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]