settings_users: Remove get_status_field.

It’s effectively unused since commit
2d5c678614 (#25061), as predicted by
commit d45f0171cb (#14919).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-10-09 13:59:46 -07:00 committed by Tim Abbott
parent 95b9d6f7e2
commit 50928314f2
1 changed files with 1 additions and 17 deletions

View File

@ -15,7 +15,6 @@ import * as presence from "./presence";
import * as scroll_util from "./scroll_util";
import * as settings_bots from "./settings_bots";
import * as settings_data from "./settings_data";
import * as settings_panel_menu from "./settings_panel_menu";
import * as timerender from "./timerender";
import * as user_deactivation_ui from "./user_deactivation_ui";
import * as user_profile from "./user_profile";
@ -91,25 +90,10 @@ function update_view_on_reactivate($row) {
$row.addClass("reactivated_user");
}
function get_status_field() {
const current_tab = settings_panel_menu.org_settings.current_tab();
switch (current_tab) {
case "deactivated-users-admin":
return $("#deactivated-user-field-status").expectOne();
case "user-list-admin":
return $("#user-field-status").expectOne();
case "bot-list-admin":
return $("#bot-field-status").expectOne();
default:
throw new Error("Invalid admin settings page");
}
}
function failed_listing_users() {
loading.destroy_indicator($("#subs_page_loading_indicator"));
const status = get_status_field();
const user_id = people.my_current_user_id();
blueslip.error("Error while listing users for user_id", {user_id, status});
blueslip.error("Error while listing users for user_id", {user_id});
}
function populate_users() {