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.

sent_messages: Remove trivial initialize function.

Anders Kaseorg082a291bd19c
diff --git a/web/src/sent_messages.js b/web/src/sent_messages.js
index 6bd08b654af..0ca758a0637 100644
--- a/web/src/sent_messages.js
+++ b/web/src/sent_messages.js
@@ -2,13 +2,9 @@ import * as Sentry from "@sentry/browser";
import * as blueslip from "./blueslip";
-export let next_local_id;
+export let next_local_id = 0;
export const messages = new Map();
-export function reset_id_state() {
- next_local_id = 0;
-}
-
export function get_new_local_id() {
next_local_id += 1;
const local_id = next_local_id;
@@ -134,7 +130,3 @@ export function report_event_received(local_id) {
state.report_event_received();
}
-
-export function initialize() {
- reset_id_state();
-}
diff --git a/web/src/ui_init.js b/web/src/ui_init.js
index 2b861d1d520..36a6f866773 100644
--- a/web/src/ui_init.js
+++ b/web/src/ui_init.js
@@ -99,7 +99,6 @@ import * as scheduled_messages_ui from "./scheduled_messages_ui";
import * as scroll_bar from "./scroll_bar";
import * as scroll_util from "./scroll_util";
import * as search from "./search";
-import * as sent_messages from "./sent_messages";
import * as server_events from "./server_events";
import * as settings from "./settings";
import * as settings_data from "./settings_data";
@@ -720,7 +719,6 @@ export function initialize_everything() {
});
drafts.initialize();
drafts_overlay_ui.initialize();
- sent_messages.initialize();
hotspots.initialize();
typing.initialize();
starred_messages_ui.initialize();