From 34eeda37d39f37fc88fa93dd7a890424fbcf6d3d Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 2 Jul 2012 12:25:24 -0400 Subject: Remove UPGRADE_REVISION definition. This is always '0'. I've never changed it to anything else so it's a useless definition. --- shell/e-shell-migrate.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'shell/e-shell-migrate.c') diff --git a/shell/e-shell-migrate.c b/shell/e-shell-migrate.c index 5fb5ca0993..b05e8a293f 100644 --- a/shell/e-shell-migrate.c +++ b/shell/e-shell-migrate.c @@ -799,7 +799,7 @@ e_shell_migrate_attempt (EShell *shell) ESEvent *ese; GSettings *settings; gint major, minor, micro; - gint curr_major, curr_minor, curr_micro; + gint curr_major, curr_minor; gchar *string; g_return_val_if_fail (E_IS_SHELL (shell), FALSE); @@ -811,8 +811,6 @@ e_shell_migrate_attempt (EShell *shell) return TRUE; } - curr_micro = atoi (UPGRADE_REVISION); - shell_migrate_get_version (shell, &major, &minor, µ); /* Migrate to XDG Base Directories first, so shell backends @@ -830,7 +828,7 @@ e_shell_migrate_attempt (EShell *shell) /* Record a successful migration. */ string = g_strdup_printf ( - "%d.%d.%d", curr_major, curr_minor, curr_micro); + "%d.%d.%d", curr_major, curr_minor, 0); g_settings_set_string (settings, "version", string); g_free (string); @@ -847,7 +845,7 @@ e_shell_migrate_attempt (EShell *shell) e_event_emit ( (EEvent *) ese, "upgrade.done", (EEventTarget *) es_event_target_new_upgrade ( - ese, curr_major, curr_minor, curr_micro)); + ese, curr_major, curr_minor, 0)); return TRUE; } -- cgit v1.2.3