Remove message_list:get_messages, which is redundant with all().

(imported from commit 100eb775b89c54c45f70cf903018bdaefa99d3f6)
This commit is contained in:
Jessica McKellar
2013-11-26 11:07:40 -05:00
parent d4fae47430
commit 7c9e7e57b9
2 changed files with 4 additions and 8 deletions

View File

@@ -93,10 +93,6 @@ MessageList.prototype = {
return this._hash[id]; return this._hash[id];
}, },
get_messages: function MessageList_get_mesages() {
return this._items;
},
num_items: function MessageList_num_items() { num_items: function MessageList_num_items() {
return this._items.length; return this._items.length;
}, },

View File

@@ -569,8 +569,8 @@ MessageListView.prototype = {
} }
this.clear_table(); this.clear_table();
this.render(this.list.get_messages().slice(this._render_win_start, this.render(this.list.all().slice(this._render_win_start,
this._render_win_end), 'bottom'); this._render_win_end), 'bottom');
// If we could see the newly selected message, scroll the // If we could see the newly selected message, scroll the
// window such that the newly selected message is at the // window such that the newly selected message is at the
@@ -617,8 +617,8 @@ MessageListView.prototype = {
this.update_render_window(this.list.selected_idx(), false); this.update_render_window(this.list.selected_idx(), false);
this.render(this.list.get_messages().slice(this._render_win_start, this.render(this.list.all().slice(this._render_win_start,
this._render_win_end), 'bottom'); this._render_win_end), 'bottom');
}, },
clear_table: function MessageListView_clear_table() { clear_table: function MessageListView_clear_table() {