Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
minor: Remove peer_data.clear().
Steve Howell17ea215f18f8
diff --git a/static/js/peer_data.js b/static/js/peer_data.jsindex 3f3f3eab1ad..0ea5f1546ea 100644--- a/static/js/peer_data.js+++ b/static/js/peer_data.js@@ -2,7 +2,7 @@ const {LazySet} = require("./lazy_set");const people = require("./people");// This maps a stream_id to a LazySet of user_ids who are subscribed.-let stream_subscribers;+const stream_subscribers = new Map();function assert_number(id) {if (typeof id !== "number") {@@ -29,10 +29,6 @@ function get_user_set(stream_id) {return subscribers;}-export function clear() {- stream_subscribers = new Map();-}-export function is_subscriber_subset(stream_id1, stream_id2) {const sub1_set = get_user_set(stream_id1);const sub2_set = get_user_set(stream_id2);diff --git a/static/js/stream_data.js b/static/js/stream_data.jsindex 88f2c7966b4..161367f2213 100644--- a/static/js/stream_data.js+++ b/static/js/stream_data.js@@ -140,7 +140,6 @@ exports.clear_subscriptions = function () {// it should only be used in tests.stream_info = new BinaryDict((sub) => sub.subscribed);subs_by_stream_id = new Map();- peer_data.clear();};exports.clear_subscriptions();