mirror of https://github.com/zulip/zulip.git
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:
parent
9cee037f2a
commit
24904f32bb
|
@ -210,10 +210,6 @@ export class MessageList {
|
|||
return this.data.last();
|
||||
}
|
||||
|
||||
ids_greater_or_equal_than(id) {
|
||||
return this.data.ids_greater_or_equal_than(id);
|
||||
}
|
||||
|
||||
prev() {
|
||||
return this.data.prev();
|
||||
}
|
||||
|
|
|
@ -108,21 +108,6 @@ export class MessageListData {
|
|||
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 {
|
||||
if (this._selected_id === -1) {
|
||||
return undefined;
|
||||
|
|
Loading…
Reference in New Issue