Geary.ComposedEmail: Remove to_rfc822_message, it's redundant

Callers can just call the same thing that method does instead.
This commit is contained in:
Michael Gratton 2020-05-05 21:24:06 +10:00 committed by Michael James Gratton
parent 6d5f63692b
commit 97e0093e29
2 changed files with 3 additions and 8 deletions

View file

@ -1771,7 +1771,9 @@ public class Composer.Widget : Gtk.EventBox, Geary.BaseInterface {
if (this.draft_manager != null) {
Geary.ComposedEmail draft = yield get_composed_email(null, true);
yield this.draft_manager.update(
yield draft.to_rfc822_message(null, null),
yield new Geary.RFC822.Message.from_composed_email(
draft, null, null
),
null,
null
);

View file

@ -123,13 +123,6 @@ public class Geary.ComposedEmail : EmailHeaderSet, BaseObject {
return this;
}
public async Geary.RFC822.Message to_rfc822_message(string? message_id,
GLib.Cancellable? cancellable) {
return yield new RFC822.Message.from_composed_email(
this, message_id, cancellable
);
}
/**
* Determines if an IMG SRC value is present in the HTML part.
*