Host: Remove unnecessary function

Remove Host_UpdateMainFrame(). The only non-empty call happened in
DolphinNoGUI which called s_update_main_frame_event.Set(), but
DolphinNoGUI never waits on that event.
This commit is contained in:
Dentomologist
2025-08-02 14:26:15 -07:00
parent 6ca486ffb2
commit d0de0a3f47
10 changed files with 0 additions and 30 deletions

View File

@@ -163,10 +163,6 @@ void Host_JitProfileDataWiped()
{
}
void Host_UpdateMainFrame()
{
}
void Host_RequestRenderWindowSize(int width, int height)
{
std::thread jnicall(UpdatePointer);

View File

@@ -242,8 +242,6 @@ bool Init(Core::System& system, std::unique_ptr<BootParameters> boot, const Wind
INFO_LOG_FMT(BOOT, "Starting core = {} mode", system.IsWii() ? "Wii" : "GameCube");
INFO_LOG_FMT(BOOT, "CPU Thread separate = {}", system.IsDualCoreMode() ? "Yes" : "No");
Host_UpdateMainFrame(); // Disable any menus or buttons at boot
// Manually reactivate the video backend in case a GameINI overrides the video backend setting.
VideoBackendBase::PopulateBackendInfo(wsi);
@@ -342,7 +340,6 @@ static void CPUSetInitialExecutionState(bool force_paused = false)
bool paused = SConfig::GetInstance().bBootToPause || force_paused;
SetState(system, paused ? State::Paused : State::Running, true, true);
Host_UpdateDisasmDialog();
Host_UpdateMainFrame();
Host_Message(HostMessageID::WMUserCreate);
});
}

View File

@@ -262,7 +262,6 @@ public:
case CPU::State::Stepping:
cpu.Break();
Host_UpdateMainFrame();
break;
case CPU::State::Running:

View File

@@ -63,7 +63,6 @@ void Host_RequestRenderWindowSize(int width, int height);
void Host_UpdateDisasmDialog();
void Host_JitCacheInvalidation();
void Host_JitProfileDataWiped();
void Host_UpdateMainFrame();
void Host_UpdateTitle(const std::string& title);
void Host_YieldToUI();
void Host_TitleChanged();

View File

@@ -456,8 +456,6 @@ static void CompressAndDumpState(Core::System& system, CompressAndDumpState_args
Core::DisplayMessage(fmt::format("Saved State to {}", temp_path.filename().string()), 2000);
}
}
Host_UpdateMainFrame();
}
void SaveAs(Core::System& system, const std::string& filename, bool wait)

View File

@@ -70,7 +70,6 @@ bool Host_UIBlocksControllerState()
return false;
}
static Common::Event s_update_main_frame_event;
void Host_Message(const HostMessageID id)
{
if (id == HostMessageID::WMUserStop)
@@ -94,11 +93,6 @@ void Host_JitProfileDataWiped()
{
}
void Host_UpdateMainFrame()
{
s_update_main_frame_event.Set();
}
void Host_RequestRenderWindowSize(int width, int height)
{
}

View File

@@ -280,9 +280,6 @@ void Host_PPCBreakpointsChanged()
// We ignore these, and their purpose should be questioned individually.
// In particular, RequestRenderWindowSize, RequestFullscreen, and
// UpdateMainFrame should almost certainly be removed.
void Host_UpdateMainFrame()
{
}
void Host_RequestRenderWindowSize(int w, int h)
{

View File

@@ -73,10 +73,6 @@ void Host_JitProfileDataWiped()
{
}
void Host_UpdateMainFrame()
{
}
void Host_RequestRenderWindowSize(int width, int height)
{
}

View File

@@ -50,9 +50,6 @@ void Host_JitCacheInvalidation()
void Host_JitProfileDataWiped()
{
}
void Host_UpdateMainFrame()
{
}
void Host_RequestRenderWindowSize(int, int)
{
}

View File

@@ -50,9 +50,6 @@ void Host_JitCacheInvalidation()
void Host_JitProfileDataWiped()
{
}
void Host_UpdateMainFrame()
{
}
void Host_RequestRenderWindowSize(int, int)
{
}