Commit df80569b authored by Michael Gratton's avatar Michael Gratton 🤞

Remove some unused code

parent 6e5c51cd
Pipeline #73072 passed with stages
in 28 minutes
......@@ -156,7 +156,6 @@ private class Geary.ImapDB.Folder : BaseObject, Geary.ReferenceSemantics {
* unless update_uid_info is true.
*/
public async void update_folder_status(Geary.Imap.FolderProperties remote_properties,
bool update_uid_info,
bool respect_marked_for_remove,
Cancellable? cancellable)
throws Error {
......@@ -199,9 +198,6 @@ private class Geary.ImapDB.Folder : BaseObject, Geary.ReferenceSemantics {
stmt.bind_rowid(2, this.folder_id);
stmt.exec(cancellable);
if (update_uid_info)
do_update_uid_info(cx, remote_properties, cancellable);
if (remote_properties.status_messages >= 0) {
do_update_last_seen_status_total(
cx, remote_properties.status_messages, cancellable
......@@ -218,11 +214,6 @@ private class Geary.ImapDB.Folder : BaseObject, Geary.ReferenceSemantics {
this.properties.recent = remote_properties.recent;
this.properties.attrs = remote_properties.attrs;
if (update_uid_info) {
this.properties.uid_validity = remote_properties.uid_validity;
this.properties.uid_next = remote_properties.uid_next;
}
// only update STATUS MESSAGES count if previously set, but use this count as the
// "authoritative" value until another SELECT/EXAMINE or MESSAGES response
if (remote_properties.status_messages >= 0) {
......
......@@ -1255,7 +1255,7 @@ internal class Geary.ImapEngine.UpdateRemoteFolders : AccountOperation {
// it's opened
try {
yield minimal_folder.local_folder.update_folder_status(
remote_folder.properties, false, false, cancellable
remote_folder.properties, false, cancellable
);
} catch (Error update_error) {
debug("Unable to update local folder %s with remote properties: %s",
......@@ -1391,7 +1391,7 @@ internal class Geary.ImapEngine.RefreshFolderUnseen : FolderOperation {
this.folder.to_string())) {
yield local_folder.update_folder_status(
remote_folder.properties, false, true, cancellable
remote_folder.properties, true, cancellable
);
((GenericAccount) this.account).update_folder(this.folder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment