From c4c7d26bb3b27d25b9849435e1663d434fb7a930 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 19 Jun 2023 20:27:50 +1000 Subject: [PATCH] Host: Remove now-unused Add[Keyed]FormattedOSDMessage --- pcsx2/Host.h | 2 -- pcsx2/ImGui/ImGuiManager.cpp | 18 ------------------ 2 files changed, 20 deletions(-) diff --git a/pcsx2/Host.h b/pcsx2/Host.h index 8c323791e3..65159461a7 100644 --- a/pcsx2/Host.h +++ b/pcsx2/Host.h @@ -72,8 +72,6 @@ namespace Host void AddOSDMessage(std::string message, float duration = 2.0f); void AddKeyedOSDMessage(std::string key, std::string message, float duration = 2.0f); void AddIconOSDMessage(std::string key, const char* icon, const std::string_view& message, float duration = 2.0f); - void AddFormattedOSDMessage(float duration, const char* format, ...); - void AddKeyedFormattedOSDMessage(std::string key, float duration, const char* format, ...); void RemoveKeyedOSDMessage(std::string key); void ClearOSDMessages(); diff --git a/pcsx2/ImGui/ImGuiManager.cpp b/pcsx2/ImGui/ImGuiManager.cpp index 1865e71591..b4fd548ecd 100644 --- a/pcsx2/ImGui/ImGuiManager.cpp +++ b/pcsx2/ImGui/ImGuiManager.cpp @@ -535,24 +535,6 @@ void Host::AddIconOSDMessage(std::string key, const char* icon, const std::strin s_osd_posted_messages.push_back(std::move(msg)); } -void Host::AddFormattedOSDMessage(float duration, const char* format, ...) -{ - std::va_list ap; - va_start(ap, format); - std::string ret = StringUtil::StdStringFromFormatV(format, ap); - va_end(ap); - return AddKeyedOSDMessage(std::string(), std::move(ret), duration); -} - -void Host::AddKeyedFormattedOSDMessage(std::string key, float duration, const char* format, ...) -{ - std::va_list ap; - va_start(ap, format); - std::string ret = StringUtil::StdStringFromFormatV(format, ap); - va_end(ap); - return AddKeyedOSDMessage(std::move(key), std::move(ret), duration); -} - void Host::RemoveKeyedOSDMessage(std::string key) { OSDMessage msg;