From 3e63090f318f115ea91362818752bb1c55efc4f0 Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Tue, 16 Oct 2007 20:07:47 +0200 Subject: [PATCH] Get rid of obsolete debug code --- src/dump-addressbook.c | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/dump-addressbook.c b/src/dump-addressbook.c index 3aa9c95..4f8e47d 100644 --- a/src/dump-addressbook.c +++ b/src/dump-addressbook.c @@ -50,21 +50,6 @@ void dump_as_vcard(EContact *contact, int dump_all) } } } - -/* char *name = e_contact_get(contact, E_CONTACT_FULL_NAME); - char *nickname = e_contact_get(contact, E_CONTACT_NICKNAME); - - printf("Name: %s\n", name); - - if (nickname && strcmp("", nickname) != 0) { - printf("Nickname: %s\n", nickname); - } - - free(name); - free(nickname); - -*/ - } int main(int argc, char **argv) @@ -91,14 +76,13 @@ int main(int argc, char **argv) for (g = groups; g; g = g->next) { group = E_SOURCE_GROUP (g->data); - printf("SOURCE GROUP: %s\n", e_source_group_peek_base_uri(group)); sources = e_source_group_peek_sources(group); for (s = sources ; s; s = s->next) { source = E_SOURCE(s->data); book = e_book_new(source, &error); e_book_open(book, TRUE, &error); - printf("\tSOURCE: %s\n", e_source_peek_name(source)); + // query = e_book_query_any_field_contains(""); query = e_book_query_field_exists(E_CONTACT_FULL_NAME); e_book_get_contacts(book, query, &contacts, &error); -- 2.39.5