Skip to content

Commit

Permalink
FullscreenUI: Fix Wunused-function compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
lightningterror committed Dec 16, 2023
1 parent 6df5cd8 commit e29bc93
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions pcsx2/ImGui/FullscreenUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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); });
Expand Down

0 comments on commit e29bc93

Please sign in to comment.