From 42106cb59a10fb89dde7857f7d6548e66e4c761b Mon Sep 17 00:00:00 2001 From: Misa Date: Sat, 2 Jan 2021 00:18:17 -0800 Subject: [PATCH] Remove unused function Graphics::PrintOff() This function was marked as unused by cppcheck. --- desktop_version/src/Graphics.cpp | 4 ---- desktop_version/src/Graphics.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index 4cae1604..5a75975f 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -455,10 +455,6 @@ int Graphics::len(std::string t) return bfontpos; } -void Graphics::PrintOff( int _x, int _y, std::string _s, int r, int g, int b, bool cen /*= false*/ ) { - PrintOffAlpha(_x,_y,_s,r,g,b,255,cen); -} - void Graphics::PrintOffAlpha( int _x, int _y, std::string _s, int r, int g, int b, int a, bool cen /*= false*/ ) { std::vector& font = flipmode ? flipbfont : bfont; diff --git a/desktop_version/src/Graphics.h b/desktop_version/src/Graphics.h index ecf216c7..3520ba48 100644 --- a/desktop_version/src/Graphics.h +++ b/desktop_version/src/Graphics.h @@ -113,8 +113,6 @@ public: void RPrint(int _x, int _y, std::string _s, int r, int g, int b, bool cen = false); - void PrintOff(int _x, int _y, std::string _s, int r, int g, int b, bool cen = false); - void PrintOffAlpha(int _x, int _y, std::string _s, int r, int g, int b, int a, bool cen = false); void bprint(int x, int y, std::string t, int r, int g, int b, bool cen = false);