FullscreenUI: Fix Wunused-function compiler warning.

This commit is contained in:
lightningterror 2023-12-16 00:25:08 +01:00
parent 6df5cd8222
commit e29bc933fe
1 changed files with 1 additions and 18 deletions

View File

@ -278,10 +278,8 @@ namespace FullscreenUI
static void DoShutdown(bool save_state);
static void RequestReset();
static void DoReset();
static void RequestChangeDiscFromFile();
static void DoChangeDiscFromFile();
static void RequestChangeDisc();
static void DoChangeDisc();
static void DoRequestExit();
static void DoToggleFullscreen();
@ -999,16 +997,6 @@ void FullscreenUI::DoReset()
});
}
void FullscreenUI::RequestChangeDiscFromFile()
{
ConfirmShutdownIfMemcardBusy([](bool result) {
if (result)
DoChangeDiscFromFile();
else
ClosePauseMenu();
});
}
void FullscreenUI::DoChangeDiscFromFile()
{
auto callback = [](const std::string& path) {
@ -1038,17 +1026,12 @@ void FullscreenUI::RequestChangeDisc()
{
ConfirmShutdownIfMemcardBusy([](bool result) {
if (result)
DoChangeDisc();
DoChangeDiscFromFile();
else
ClosePauseMenu();
});
}
void FullscreenUI::DoChangeDisc()
{
DoChangeDiscFromFile();
}
void FullscreenUI::DoRequestExit()
{
Host::RunOnCPUThread([]() { Host::RequestExit(true); });