aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component/addressbook-migrate.c
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/component/addressbook-migrate.c')
-rw-r--r--addressbook/gui/component/addressbook-migrate.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/addressbook/gui/component/addressbook-migrate.c b/addressbook/gui/component/addressbook-migrate.c
index 5f56b24dfe..c4516c4b0a 100644
--- a/addressbook/gui/component/addressbook-migrate.c
+++ b/addressbook/gui/component/addressbook-migrate.c
@@ -220,30 +220,6 @@ get_source_name (ESourceGroup *group, const char *path)
}
static void
-add_to_notes (EContact *contact, EContactField field)
-{
- const gchar *old_text;
- const gchar *field_text;
- gchar *new_text;
-
- old_text = e_contact_get_const (contact, E_CONTACT_NOTE);
- if (old_text && strstr (old_text, e_contact_pretty_name (field)))
- return;
-
- field_text = e_contact_get_const (contact, field);
- if (!field_text || !*field_text)
- return;
-
- new_text = g_strdup_printf ("%s%s%s: %s",
- old_text ? old_text : "",
- old_text && *old_text &&
- *(old_text + strlen (old_text) - 1) != '\n' ? "\n" : "",
- e_contact_pretty_name (field), field_text);
- e_contact_set (contact, E_CONTACT_NOTE, new_text);
- g_free (new_text);
-}
-
-static void
migrate_contacts (MigrationContext *context, EBook *old_book, EBook *new_book)
{
EBookQuery *query = e_book_query_any_field_contains ("");