aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
Diffstat (limited to 'composer')
-rw-r--r--composer/e-composer-actions.c1
-rw-r--r--composer/e-composer-autosave.c33
-rw-r--r--composer/e-composer-autosave.h3
-rw-r--r--composer/e-msg-composer.c1
4 files changed, 0 insertions, 38 deletions
diff --git a/composer/e-composer-actions.c b/composer/e-composer-actions.c
index 9c2ed6aed6..93317c83f6 100644
--- a/composer/e-composer-actions.c
+++ b/composer/e-composer-actions.c
@@ -186,7 +186,6 @@ action_save_cb (GtkAction *action,
}
gtkhtml_editor_run_command (GTKHTML_EDITOR (composer), "saved");
- e_composer_autosave_set_saved (composer, FALSE);
}
static void
diff --git a/composer/e-composer-autosave.c b/composer/e-composer-autosave.c
index 1ed4e84ac3..a4d5343653 100644
--- a/composer/e-composer-autosave.c
+++ b/composer/e-composer-autosave.c
@@ -36,7 +36,6 @@ typedef struct _AutosaveState AutosaveState;
struct _AutosaveState {
GFile *file;
gboolean enabled;
- gboolean saved;
};
static GList *autosave_registry;
@@ -322,11 +321,6 @@ autosave_snapshot_splice_cb (GOutputStream *output_stream,
if (autosave_snapshot_check_for_error (data, error))
return;
- /* Snapshot was successful; set various flags. */
- /* do not touch "changed" flag, this is only autosave,
- * which doesn't mean it's saved permanently */
- e_composer_autosave_set_saved (data->composer, TRUE);
-
/* Steal the result. */
simple = data->simple;
data->simple = NULL;
@@ -513,30 +507,3 @@ e_composer_autosave_set_enabled (EMsgComposer *composer,
state->enabled = enabled;
}
-
-gboolean
-e_composer_autosave_get_saved (EMsgComposer *composer)
-{
- AutosaveState *state;
-
- g_return_val_if_fail (E_IS_MSG_COMPOSER (composer), FALSE);
-
- state = g_object_get_data (G_OBJECT (composer), "autosave");
- g_return_val_if_fail (state != NULL, FALSE);
-
- return state->saved;
-}
-
-void
-e_composer_autosave_set_saved (EMsgComposer *composer,
- gboolean saved)
-{
- AutosaveState *state;
-
- g_return_if_fail (E_IS_MSG_COMPOSER (composer));
-
- state = g_object_get_data (G_OBJECT (composer), "autosave");
- g_return_if_fail (state != NULL);
-
- state->saved = saved;
-}
diff --git a/composer/e-composer-autosave.h b/composer/e-composer-autosave.h
index c413acdf59..6f55f10b1a 100644
--- a/composer/e-composer-autosave.h
+++ b/composer/e-composer-autosave.h
@@ -39,9 +39,6 @@ gchar * e_composer_autosave_get_filename (EMsgComposer *composer);
gboolean e_composer_autosave_get_enabled (EMsgComposer *composer);
void e_composer_autosave_set_enabled (EMsgComposer *composer,
gboolean enabled);
-gboolean e_composer_autosave_get_saved (EMsgComposer *composer);
-void e_composer_autosave_set_saved (EMsgComposer *composer,
- gboolean saved);
G_END_DECLS
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 246a0906b9..bc1ce20dd6 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -3062,7 +3062,6 @@ e_msg_composer_save_draft (EMsgComposer *composer)
/* XXX This should be elsewhere. */
gtkhtml_editor_set_changed (editor, FALSE);
- e_composer_autosave_set_saved (composer, FALSE);
}
/**