aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-10-02 11:40:39 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-10-02 11:40:39 +0800
commit027c7e7279eaf28ab7dfb713f36ff6234f570eec (patch)
tree413392e7a390e2e46b44eb5fd4c3a63dfa22f421
parent0b537addf009822dee4c0b0def9a30d1de16da6b (diff)
downloadgsoc2013-evolution-027c7e7279eaf28ab7dfb713f36ff6234f570eec.tar.gz
gsoc2013-evolution-027c7e7279eaf28ab7dfb713f36ff6234f570eec.tar.zst
gsoc2013-evolution-027c7e7279eaf28ab7dfb713f36ff6234f570eec.zip
Remove unneeded composer autosave functions.
-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
-rw-r--r--mail/em-composer-utils.c2
5 files changed, 0 insertions, 40 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);
}
/**
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 59edd4c751..b5bef46383 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -506,8 +506,6 @@ composer_set_no_change (EMsgComposer *composer, gboolean drop_undo, gboolean edi
if (editor_changed)
gtkhtml_editor_set_changed (editor, FALSE);
-
- e_composer_autosave_set_saved (composer, TRUE);
}
static void