Remove Gui::CallConstructor();.

This commit is contained in:
StackZ
2020-05-26 12:17:27 +02:00
parent f2f7c0c868
commit 95b3161f30
3 changed files with 0 additions and 12 deletions
-6
View File
@@ -259,11 +259,6 @@ void Gui::ScreenLogic(u32 hDown, u32 hHeld, touchPosition touch, bool waitFade)
}
}
// Calls the current screen's constructor.
void Gui::CallConstructor() {
if (usedScreen != nullptr) usedScreen->callConstructor();
}
// Move's the tempScreen to the used one.
void Gui::transferScreen() {
if (tempScreen != nullptr) usedScreen = std::move(tempScreen);
@@ -298,7 +293,6 @@ void Gui::fadeEffects(int fadeoutFrames, int fadeinFrames) {
if (fadealpha > 255) {
fadealpha = 255;
Gui::transferScreen(); // Transfer Temp screen to the used one.
Gui::CallConstructor(); // Here we call the constructor for the current screen.
fadein = true;
fadeout = false;
}
-5
View File
@@ -143,11 +143,6 @@ namespace Gui {
*/
void ScreenLogic(u32 hDown, u32 hHeld, touchPosition touch, bool waitFade = true);
/* Used for the current Screen's Constructor call. (Optional!)
* This is useful if you need to call the screen's constructor.
*/
void CallConstructor();
/* Transfer the Temp Screen to the used one. (Optional!)
* It will check, if the tempScreen variable is not nullptr, so don't worry.
*/
-1
View File
@@ -35,7 +35,6 @@ public:
virtual ~Screen() {}
virtual void Logic(u32 hDown, u32 hHeld, touchPosition touch) = 0;
virtual void Draw() const = 0;
virtual void callConstructor() = 0;
};
#endif