aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-migrate.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-07-03 00:25:24 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-07-03 00:48:42 +0800
commit34eeda37d39f37fc88fa93dd7a890424fbcf6d3d (patch)
treeb24ef305369d41540ebfe32fffd7e9fa59628495 /shell/e-shell-migrate.c
parent56333d439bb9bf225d413a6308d2077288207315 (diff)
downloadgsoc2013-evolution-34eeda37d39f37fc88fa93dd7a890424fbcf6d3d.tar.gz
gsoc2013-evolution-34eeda37d39f37fc88fa93dd7a890424fbcf6d3d.tar.zst
gsoc2013-evolution-34eeda37d39f37fc88fa93dd7a890424fbcf6d3d.zip
Remove UPGRADE_REVISION definition.
This is always '0'. I've never changed it to anything else so it's a useless definition.
Diffstat (limited to 'shell/e-shell-migrate.c')
-rw-r--r--shell/e-shell-migrate.c8
1 files changed, 3 insertions, 5 deletions
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, &micro);
/* 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;
}