mirror of https://github.com/zulip/zulip.git
sub_store: Remove unused function `delete_sub`.
Function `delete_sub` was exclusively called by `stream_data.delete_sub`. With the change in the approach where we no longer remove subscriptions from `stream_info` and `subs_by_stream_id`, the `delete_sub` function is no longer needed.
This commit is contained in:
parent
5ce2b307c4
commit
f257188ab5
|
@ -60,10 +60,6 @@ export function clear(): void {
|
|||
subs_by_stream_id.clear();
|
||||
}
|
||||
|
||||
export function delete_sub(stream_id: number): void {
|
||||
subs_by_stream_id.delete(stream_id);
|
||||
}
|
||||
|
||||
export function add_hydrated_sub(stream_id: number, sub: StreamSubscription): void {
|
||||
// The only code that should call this directly is
|
||||
// in stream_data.js. Grep there to find callers.
|
||||
|
|
Loading…
Reference in New Issue