From 25ffd1fe0bb72058d7e3549ea43e71180cdba9b8 Mon Sep 17 00:00:00 2001 From: Anthony Carbajal <5776225+CrackedPixel@users.noreply.github.com> Date: Fri, 8 Sep 2023 13:01:34 -0600 Subject: [PATCH] commented out unused vars (#329) --- src/raygui.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/raygui.h b/src/raygui.h index 07fd23a..8df2193 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -1324,7 +1324,7 @@ static const char *guiTooltipPtr = NULL; // Tooltip string pointer (strin static bool guiSliderDragging = false; // Gui slider drag state (no inputs processed except dragged slider) static Rectangle guiSliderActive = { 0 }; // Gui slider active bounds rectangle, used as an unique identifier -static int textBoxCursorIndex = 0; // Cursor index, shared by all GuiTextBox*() +static int textBoxCursorIndex = 0; // Cursor index, shared by all GuiTextBox*() //static int blinkCursorFrameCounter = 0; // Frame counter for cursor blinking static int autoCursorCooldownCounter = 0; // Cooldown frame counter for automatic cursor movement on key-down static int autoCursorDelayCounter = 0; // Delay frame counter for automatic cursor movement @@ -1656,7 +1656,7 @@ int GuiTabBar(Rectangle bounds, const char **text, int count, int *active) #define RAYGUI_TABBAR_ITEM_WIDTH 160 int result = -1; - GuiState state = guiState; + //GuiState state = guiState; Rectangle tabBounds = { bounds.x, bounds.y, RAYGUI_TABBAR_ITEM_WIDTH, bounds.height }; @@ -2077,7 +2077,7 @@ int GuiToggleSlider(Rectangle bounds, const char *text, int *active) int temp = 0; if (active == NULL) active = &temp; - bool toggle = false; // Required for individual toggles + //bool toggle = false; // Required for individual toggles // Get substrings items from text (items pointers) int itemCount = 0; @@ -4624,13 +4624,13 @@ const char **GetTextLines(const char *text, int *count) lines[0] = text; int len = 0; *count = 1; - int lineSize = 0; // Stores current line size, not returned + //int lineSize = 0; // Stores current line size, not returned for (int i = 0, k = 0; (i < textSize) && (*count < RAYGUI_MAX_TEXT_LINES); i++) { if (text[i] == '\n') { - lineSize = len; + //lineSize = len; k++; lines[k] = &text[i + 1]; // WARNING: next value is valid? len = 0;