Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
pm-list-data: Remove unused `is_all_privates` function.
Lauryn Menard1ddc27d91b55
diff --git a/frontend_tests/node_tests/pm_list_data.js b/frontend_tests/node_tests/pm_list_data.jsindex a98db5b4bea..2e4578fde13 100644--- a/frontend_tests/node_tests/pm_list_data.js+++ b/frontend_tests/node_tests/pm_list_data.js@@ -214,23 +214,6 @@ test("get_active_user_ids_string", () => {assert.equal(pm_list_data.get_active_user_ids_string(), "101,102");});-function private_filter() {- return {- operands(operand) {- assert.equal(operand, "is");- return ["private", "starred"];- },- };-}--test("is_all_privates", () => {- assert.equal(narrow_state.filter(), undefined);- assert.equal(pm_list_data.is_all_privates(), false);-- narrow_state.set_current_filter(private_filter());- assert.equal(pm_list_data.is_all_privates(), true);-});-test("get_list_info", ({override}) => {let list_info;assert.equal(narrow_state.filter(), undefined);diff --git a/static/js/pm_list_data.js b/static/js/pm_list_data.jsindex 0098b57d0d0..37f0ac7f60d 100644--- a/static/js/pm_list_data.js+++ b/static/js/pm_list_data.js@@ -79,16 +79,6 @@ export function get_conversations() {return display_objects;}-export function is_all_privates() {- const filter = narrow_state.filter();-- if (!filter) {- return false;- }-- return filter.operands("is").includes("private");-}-// Designed to closely match topic_list_data.get_list_info().export function get_list_info(zoomed) {const conversations = get_conversations();