From c2c9452cdd6f50923c02d59c68087add8d17f03a Mon Sep 17 00:00:00 2001 From: rtk0c Date: Wed, 30 Jun 2021 11:53:50 -0700 Subject: Fix notable warnings (from gcc) --- core/src/UI/UI_Items.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'core/src/UI/UI_Items.cpp') diff --git a/core/src/UI/UI_Items.cpp b/core/src/UI/UI_Items.cpp index 2685c82..5b84cb8 100644 --- a/core/src/UI/UI_Items.cpp +++ b/core/src/UI/UI_Items.cpp @@ -32,8 +32,6 @@ ActionResult ItemEditor(ItemList& list, T* item) t.GetEmail(); }; - auto& gs = GlobalStates::GetInstance(); - static bool duplicateName = false; static std::string name; @@ -116,8 +114,6 @@ void ItemListEntries(ItemList& list, int& selectedIdx) }; constexpr int kColumns = 1 /* Name column */ + kHasDescription + kHasEmail + kHasStock + kHasPrice; - auto& gs = GlobalStates::GetInstance(); - if (ImGui::BeginTable("", kColumns, ImGuiTableFlags_Borders)) { ImGui::TableSetupColumn(I18N_TEXT("Name", L10N_ITEM_COLUMN_NAME)); -- cgit v1.2.3-70-g09d2