From 334302c8009121aa984802ca74a6ad5763f8af8e Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 19 Mar 2021 19:45:28 -0700 Subject: [PATCH] Remove unused x/y textboxclass attributes These unused variables distract from properly analyzing the code when you read it, since the xp/yp attributes of textboxclass already exist, too. --- desktop_version/src/Textbox.cpp | 2 -- desktop_version/src/Textbox.h | 1 - 2 files changed, 3 deletions(-) diff --git a/desktop_version/src/Textbox.cpp b/desktop_version/src/Textbox.cpp index a05dce84..47df3aca 100644 --- a/desktop_version/src/Textbox.cpp +++ b/desktop_version/src/Textbox.cpp @@ -4,8 +4,6 @@ textboxclass::textboxclass(void) { - x = 0; - y = 0; w = 0; h = 0; lw = 0; diff --git a/desktop_version/src/Textbox.h b/desktop_version/src/Textbox.h index 7185b7c9..99dc76aa 100644 --- a/desktop_version/src/Textbox.h +++ b/desktop_version/src/Textbox.h @@ -33,7 +33,6 @@ public: //Fundamentals std::vector line; int xp, yp, lw, w, h; - int x,y; int r,g,b; int tr,tg,tb; SDL_Rect textrect;