Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stream_list_sort: Remove unused function.

Aman Agrawal87864992a808
diff --git a/web/src/stream_list_sort.ts b/web/src/stream_list_sort.ts
index a7418fa7f88..3c349ec53dc 100644
--- a/web/src/stream_list_sort.ts
+++ b/web/src/stream_list_sort.ts
@@ -57,10 +57,6 @@ export function is_filtering_inactives(): boolean {
return filter_out_inactives;
}
-export function has_recent_activity_but_muted(sub: StreamSubscription): boolean {
- return sub.is_recently_active && sub.is_muted;
-}
-
type StreamListSortResult = {
same_as_before: boolean;
pinned_streams: number[];
diff --git a/web/tests/stream_list_sort.test.cjs b/web/tests/stream_list_sort.test.cjs
index cd62656dbb5..07bf9e7f510 100644
--- a/web/tests/stream_list_sort.test.cjs
+++ b/web/tests/stream_list_sort.test.cjs
@@ -201,18 +201,6 @@ test("basics", () => {
assert.deepEqual(sorted.dormant_streams, []);
});
-test("has_recent_activity_but_muted", () => {
- const sub = {
- name: "cats",
- subscribed: true,
- stream_id: 111,
- is_muted: true,
- is_recently_active: true,
- };
- stream_data.add_sub(sub);
- assert.ok(stream_list_sort.has_recent_activity_but_muted(sub));
-});
-
test("filter inactives", ({override}) => {
override(
user_settings,