[gnome-contacts] ContactsContact: remove unused helper functions.
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] ContactsContact: remove unused helper functions.
- Date: Fri, 29 Dec 2017 01:35:23 +0000 (UTC)
commit a2467c5d827021986fca46620008bafa46f3b793
Author: Niels De Graef <nielsdegraef gmail com>
Date: Fri Dec 29 02:33:43 2017 +0100
ContactsContact: remove unused helper functions.
The big idea is that Folks.Individual already provides a wealth of
properties/methods to get what we need. No use in trying to wrap all of
that.
src/contacts-contact.vala | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/src/contacts-contact.vala b/src/contacts-contact.vala
index 38219c1..bdc01f7 100644
--- a/src/contacts-contact.vala
+++ b/src/contacts-contact.vala
@@ -196,28 +196,6 @@ public class Contacts.Contact : GLib.Object {
return false;
}
- public bool has_birthday () {
- return individual.birthday != null;
- }
-
- public bool has_nickname () {
- return individual.nickname != null &&
- individual.nickname != "";
- }
-
- public bool has_notes () {
- foreach (var p in get_personas_for_display ()) {
- var note_details = p as NoteDetails;
- if (note_details != null) {
- foreach (var note in note_details.notes) {
- if (note.value != "")
- return true;
- }
- }
- }
- return false;
- }
-
public bool contains_strings (string [] strings) {
foreach (string i in strings) {
if (! (i in filter_data))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]