Skip to content

Commit 6fecf90

Browse files
committed
Unused variables fixes.
1 parent 5aaf0cd commit 6fecf90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

imgui.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,6 @@ ImGuiTextFilter::ImGuiTextFilter(const char* default_filter)
13021302

13031303
void ImGuiTextFilter::Draw(const char* label, float width)
13041304
{
1305-
ImGuiWindow* window = GetCurrentWindow();
13061305
if (width > 0.0f)
13071306
ImGui::PushItemWidth(width);
13081307
ImGui::InputText(label, InputBuf, IM_ARRAYSIZE(InputBuf));
@@ -7555,7 +7554,7 @@ void ImFont::BuildLookupTable()
75557554

75567555
// Create a glyph to handle TAB
75577556
// FIXME: Needs proper TAB handling but it needs to be contextualized (can arbitrary say that each string starts at "column 0"
7558-
if (const ImFont::Glyph* space_glyph = FindGlyph((unsigned short)' '))
7557+
if (FindGlyph((unsigned short)' '))
75597558
{
75607559
Glyphs.resize(Glyphs.size() + 1);
75617560
ImFont::Glyph& tab_glyph = Glyphs.back();
@@ -8658,9 +8657,10 @@ void ImGui::ShowTestWindow(bool* opened)
86588657
ImGui::ColorEdit4("color 2", col2);
86598658

86608659
const char* listbox_items[] = { "Apple", "Banana", "Cherry", "Kiwi", "Mango", "Orange", "Pineapple", "Strawberry", "Watermelon" };
8661-
static int listbox_item_current = 1, listbox_item_current2 = 2;
8660+
static int listbox_item_current = 1;
86628661
ImGui::ListBox("listbox\n(single select)", &listbox_item_current, listbox_items, IM_ARRAYSIZE(listbox_items), 4);
86638662

8663+
//static int listbox_item_current2 = 2;
86648664
//ImGui::PushItemWidth(-1);
86658665
//ImGui::ListBox("##listbox2", &listbox_item_current2, listbox_items, IM_ARRAYSIZE(listbox_items), 4);
86668666
//ImGui::PopItemWidth();

0 commit comments

Comments
 (0)