ConversationListView: Remove some unused code

This commit is contained in:
Michael Gratton 2019-11-05 10:56:50 +11:00 committed by Michael James Gratton
parent 2d47e4802b
commit e564ab4a03

View file

@ -18,7 +18,6 @@ public class ConversationListView : Gtk.TreeView, Geary.BaseInterface {
private Geary.Scheduler.Scheduled? scheduled_update_visible_conversations = null;
private Gee.Set<Geary.App.Conversation> selected = new Gee.HashSet<Geary.App.Conversation>();
private Geary.IdleManager selection_update;
private bool suppress_selection = false;
public signal void conversations_selected(Gee.Set<Geary.App.Conversation> selected);
@ -161,22 +160,6 @@ public class ConversationListView : Gtk.TreeView, Geary.BaseInterface {
}
}
/**
* Specifies an action is currently changing the view's selection.
*/
public void set_changing_selection(bool is_changing) {
// Make sure that when not autoselecting, and if the user is
// causing selected rows to be removed, the next row is not
// automatically selected by GtkTreeView
if (is_changing) {
this.suppress_selection =
!GearyApplication.instance.config.autoselect;
} else {
// If no longer changing, always re-enable selection
get_selection().set_mode(Gtk.SelectionMode.MULTIPLE);
}
}
private void check_load_more() {
ConversationListStore? model = get_model();
Geary.App.ConversationMonitor? conversations = (model != null)