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:
sanchi-t 2024-02-29 19:35:25 +05:30 committed by Tim Abbott
parent 5ce2b307c4
commit f257188ab5
1 changed files with 0 additions and 4 deletions

View File

@ -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.