From eb10eefdcd99149d1584f6885a2b1dbe1a0c8dfe Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 29 Jul 2024 17:54:31 -0400 Subject: [PATCH] Cleanup: Remove unused status bar string creation Unused after 1076564070a97a6e1097087c575f83056773f1aa. --- .../blender/editors/sculpt_paint/sculpt_filter_mesh.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc index 37859872e1f..7eb04cce4b1 100644 --- a/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc +++ b/source/blender/editors/sculpt_paint/sculpt_filter_mesh.cc @@ -709,16 +709,8 @@ wmKeyMap *modal_keymap(wmKeyConfig *keyconf) return keymap; } -static void sculpt_mesh_update_status_bar(bContext *C, wmOperator *op) +static void sculpt_mesh_update_status_bar(bContext *C, wmOperator * /*op*/) { - auto get_modal_key_str = [&](int id) { - return WM_modalkeymap_operator_items_to_string(op->type, id, true).value_or(""); - }; - - const std::string header = fmt::format(IFACE_("{}: Confirm, {}: Cancel"), - get_modal_key_str(FILTER_MESH_MODAL_CONFIRM), - get_modal_key_str(FILTER_MESH_MODAL_CANCEL)); - WorkspaceStatus status(C); status.item(IFACE_("Confirm"), ICON_EVENT_RETURN); status.item(IFACE_("Cancel"), ICON_EVENT_ESC, ICON_MOUSE_RMB);