From 0d582dabf34e9e31f072b1ee5c353c18351b4424 Mon Sep 17 00:00:00 2001 From: ocornut Date: Thu, 14 Dec 2023 17:24:13 +0100 Subject: [PATCH] Fixed warning (amend 54c1bde) --- imgui_widgets.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/imgui_widgets.cpp b/imgui_widgets.cpp index 5ad751d4..ac5455b0 100644 --- a/imgui_widgets.cpp +++ b/imgui_widgets.cpp @@ -4111,7 +4111,6 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ ImGuiWindow* draw_window = window; ImVec2 inner_size = frame_size; - ImGuiItemStatusFlags item_status_flags = 0; ImGuiLastItemData item_data_backup; if (is_multiline) { @@ -4122,7 +4121,6 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ EndGroup(); return false; } - item_status_flags = g.LastItemData.StatusFlags; item_data_backup = g.LastItemData; window->DC.CursorPos = backup_pos; @@ -4162,7 +4160,6 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_ if (!(flags & ImGuiInputTextFlags_MergedItem)) if (!ItemAdd(total_bb, id, &frame_bb, ImGuiItemFlags_Inputable)) return false; - item_status_flags = g.LastItemData.StatusFlags; } const bool hovered = ItemHoverable(frame_bb, id, g.LastItemData.InFlags); if (hovered)