From 54ff36da97540945882fc62ab586d5d20e0bec7b Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 2 Jan 2021 00:25:34 -0800 Subject: [PATCH] Remove unused function Graphics::textboxmove() 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 453b9173..7e7cd1e6 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -2836,18 +2836,6 @@ int Graphics::textboxwidth() return textbox[m].w; } -void Graphics::textboxmove(int xo, int yo) -{ - if (!INBOUNDS_VEC(m, textbox)) - { - puts("textboxmove() out-of-bounds!"); - return; - } - - textbox[m].xp += xo; - textbox[m].yp += yo; -} - void Graphics::textboxmoveto(int xo) { if (!INBOUNDS_VEC(m, textbox)) diff --git a/desktop_version/src/Graphics.h b/desktop_version/src/Graphics.h index e4de456b..f23088e3 100644 --- a/desktop_version/src/Graphics.h +++ b/desktop_version/src/Graphics.h @@ -53,8 +53,6 @@ public: int textboxwidth(); - void textboxmove(int xo, int yo); - void textboxmoveto(int xo); void textboxcentery();