summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2020-11-18 02:09:05 -0500
committerGravatar Lioncash2020-11-18 02:09:08 -0500
commitaaf262bfed6eaeaf34d487059eed95e540636108 (patch)
treee85b167d6627ce4e88b8ab4992b86c2a413e16b5 /src
parentcore: Make use of [[nodiscard]] with the System class (diff)
downloadyuzu-aaf262bfed6eaeaf34d487059eed95e540636108.tar.gz
yuzu-aaf262bfed6eaeaf34d487059eed95e540636108.tar.xz
yuzu-aaf262bfed6eaeaf34d487059eed95e540636108.zip
core: Remove unused private Init function for the System class
This isn't used, so it can be removed.
Diffstat (limited to 'src')
-rw-r--r--src/core/core.cpp12
-rw-r--r--src/core/core.h8
2 files changed, 4 insertions, 16 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index e33ed77cd..8d65a5d91 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -444,6 +444,10 @@ void System::InvalidateCpuInstructionCaches() {
444 impl->kernel.InvalidateAllInstructionCaches(); 444 impl->kernel.InvalidateAllInstructionCaches();
445} 445}
446 446
447void System::Shutdown() {
448 impl->Shutdown();
449}
450
447System::ResultStatus System::Load(Frontend::EmuWindow& emu_window, const std::string& filepath) { 451System::ResultStatus System::Load(Frontend::EmuWindow& emu_window, const std::string& filepath) {
448 return impl->Load(*this, emu_window, filepath); 452 return impl->Load(*this, emu_window, filepath);
449} 453}
@@ -752,14 +756,6 @@ const System::CurrentBuildProcessID& System::GetCurrentProcessBuildID() const {
752 return impl->build_id; 756 return impl->build_id;
753} 757}
754 758
755System::ResultStatus System::Init(Frontend::EmuWindow& emu_window) {
756 return impl->Init(*this, emu_window);
757}
758
759void System::Shutdown() {
760 impl->Shutdown();
761}
762
763Service::SM::ServiceManager& System::ServiceManager() { 759Service::SM::ServiceManager& System::ServiceManager() {
764 return *impl->service_manager; 760 return *impl->service_manager;
765} 761}
diff --git a/src/core/core.h b/src/core/core.h
index e1cc2975d..cd155625c 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -388,14 +388,6 @@ public:
388private: 388private:
389 System(); 389 System();
390 390
391 /**
392 * Initialize the emulated system.
393 * @param emu_window Reference to the host-system window used for video output and keyboard
394 * input.
395 * @return ResultStatus code, indicating if the operation succeeded.
396 */
397 [[nodiscard]] ResultStatus Init(Frontend::EmuWindow& emu_window);
398
399 struct Impl; 391 struct Impl;
400 std::unique_ptr<Impl> impl; 392 std::unique_ptr<Impl> impl;
401 393