stream_data: Remove unused home_view_stream_names.

This commit is contained in:
evykassirer
2024-08-03 12:18:04 -07:00
committed by Tim Abbott
parent 90cced31af
commit 5cc5659010
2 changed files with 0 additions and 6 deletions

View File

@@ -433,11 +433,6 @@ export function all_subscribed_streams_are_in_home_view(): boolean {
return subscribed_subs().every((sub) => !sub.is_muted);
}
export function home_view_stream_names(): string[] {
const home_view_subs = subscribed_subs().filter((sub) => !sub.is_muted);
return home_view_subs.map((sub) => sub.name);
}
export function canonicalized_name(stream_name: string): string {
return stream_name.toString().toLowerCase();
}

View File

@@ -123,7 +123,6 @@ test("basics", () => {
assert.equal(stream_data.get_sub("web_public_stream"), web_public_stream);
assert.ok(stream_data.is_web_public(web_public_stream.stream_id));
assert.deepEqual(stream_data.home_view_stream_names(), ["social"]);
assert.deepEqual(stream_data.subscribed_streams(), ["social", "test"]);
assert.deepEqual(stream_data.get_colors(), ["red", "yellow"]);
assert.deepEqual(stream_data.subscribed_stream_ids(), [social.stream_id, test.stream_id]);