From 9a9f3f57d59b153b930f3a0ff78f4961b84d76ef Mon Sep 17 00:00:00 2001 From: Misa Date: Mon, 2 Nov 2020 12:14:56 -0800 Subject: [PATCH] Remove unused variable mapclass::towercol This variable is written to, but is never actually read. Writing to a variable doesn't really do anything unless you read from it somewhere else. --- desktop_version/src/Map.cpp | 4 ---- desktop_version/src/Map.h | 1 - 2 files changed, 5 deletions(-) diff --git a/desktop_version/src/Map.cpp b/desktop_version/src/Map.cpp index e7c04aaf..0f6ab6f2 100644 --- a/desktop_version/src/Map.cpp +++ b/desktop_version/src/Map.cpp @@ -91,7 +91,6 @@ mapclass::mapclass() scrolldir = 0; check = 0; cmode = 0; - towercol = 0; tdrawback = false; bscroll = 0; roomtexton = false; @@ -632,7 +631,6 @@ void mapclass::updatetowerglow() if (colsuperstate > 0) colstatedelay = 0; tdrawback = true; - towercol = RGB(r*0.04f, g*0.04f, b*0.04f); } else { @@ -670,7 +668,6 @@ void mapclass::nexttowercolour() } tdrawback = true; - towercol = RGB(r*0.04, g*0.04, b*0.04); } void mapclass::settowercolour(int t) @@ -703,7 +700,6 @@ void mapclass::settowercolour(int t) } tdrawback = true; - towercol = RGB(r*0.04, g*0.04, b*0.04); } bool mapclass::spikecollide(int x, int y) diff --git a/desktop_version/src/Map.h b/desktop_version/src/Map.h index 53af2482..963ed8b2 100644 --- a/desktop_version/src/Map.h +++ b/desktop_version/src/Map.h @@ -114,7 +114,6 @@ public: //This is the old colour cycle int r, g,b; int check, cmode; - int towercol; int colstate, colstatedelay; int colsuperstate; int spikeleveltop, spikelevelbottom;