From ca904a4d7c824b44b871e284fd3cc8684e91bf0d Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 2 Jan 2021 00:24:49 -0800 Subject: [PATCH] Remove unused function Graphics::textboxcenter() This function was marked as unused by cppcheck. --- desktop_version/src/Graphics.cpp | 12 ------------ desktop_version/src/Graphics.h | 2 -- 2 files changed, 14 deletions(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 392b85c7..453b9173 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -2814,18 +2814,6 @@ void Graphics::setwarprect( int a, int b, int c, int d ) warprect.h = d; } -void Graphics::textboxcenter() -{ - if (!INBOUNDS_VEC(m, textbox)) - { - puts("textboxcenter() out-of-bounds!"); - return; - } - - textbox[m].centerx(); - textbox[m].centery(); -} - void Graphics::textboxcenterx() { if (!INBOUNDS_VEC(m, textbox)) diff --git a/desktop_version/src/Graphics.h b/desktop_version/src/Graphics.h index 168a6695..e4de456b 100644 --- a/desktop_version/src/Graphics.h +++ b/desktop_version/src/Graphics.h @@ -49,8 +49,6 @@ public: void createtextbox(std::string t, int xp, int yp, int r= 255, int g= 255, int b = 255); - void textboxcenter(); - void textboxcenterx(); int textboxwidth();