message_list: Remove ids_greater_or_equal_than.

It’s unused since commit c876e12b86
(#23579).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-23 18:41:25 -07:00 committed by Anders Kaseorg
parent 9cee037f2a
commit 24904f32bb
2 changed files with 0 additions and 19 deletions

View File

@ -210,10 +210,6 @@ export class MessageList {
return this.data.last(); return this.data.last();
} }
ids_greater_or_equal_than(id) {
return this.data.ids_greater_or_equal_than(id);
}
prev() { prev() {
return this.data.prev(); return this.data.prev();
} }

View File

@ -108,21 +108,6 @@ export class MessageListData {
return this.first()!.id <= msg_id && msg_id <= this.last()!.id; return this.first()!.id <= msg_id && msg_id <= this.last()!.id;
} }
ids_greater_or_equal_than(my_id: number): number[] {
const result = [];
for (let i = this._items.length - 1; i >= 0; i -= 1) {
const message_id = this._items[i].id;
if (message_id >= my_id) {
result.push(message_id);
} else {
continue;
}
}
return result;
}
select_idx(): number | undefined { select_idx(): number | undefined {
if (this._selected_id === -1) { if (this._selected_id === -1) {
return undefined; return undefined;