stream_list_sort: Remove stream list row navigation code.

This stopped being used after 78a3ef56e4.
This commit is contained in:
Evy Kassirer
2025-08-14 15:21:00 -07:00
committed by Tim Abbott
parent d559628abd
commit aeab2fd097
2 changed files with 7 additions and 125 deletions

View File

@@ -121,7 +121,6 @@ test("no_subscribed_streams", () => {
],
same_as_before: sorted.same_as_before,
});
assert.equal(stream_list_sort.first_row(), undefined);
});
test("basics", () => {
@@ -150,15 +149,6 @@ test("basics", () => {
]);
assert.deepEqual(normal.muted_streams, [muted_active.stream_id]);
// Test keyboard UI / cursor code (currently mostly deleted).
// TODO/channel-folders: Re-add keyboard navigation tests,
// including some with filtering. This mainly requires either
// exporting some parts of the stream_list module, or refactoring
// to move some of the stream_list data objects to another module.
const row = stream_list_sort.first_row();
assert.equal(row.type, "stream");
assert.equal(row.stream_id, scalene.stream_id);
// Test filtering
sorted_sections = sort_groups("s").sections;
assert.deepEqual(sorted_sections.length, 2);