summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Filesystem.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-08-02 18:16:56 +0200
committerJosJuice <josjuice@gmail.com>2017-09-15 18:57:05 +0200
commit38304da947c6b593ef94449894dc018aac633344 (patch)
treed6d79c531ef8363a302487ec70bd9d859fcb9c35 /Source/Core/DiscIO/Filesystem.cpp
parent0d078219358b04266206ea1e2622396db7724136 (diff)
DiscIO: Use Common::Lazy for loading filesystems
This simplifies FileMonitor a lot and also lets us clean up FilesystemPanel.
Diffstat (limited to 'Source/Core/DiscIO/Filesystem.cpp')
-rw-r--r--Source/Core/DiscIO/Filesystem.cpp17
1 files changed, 0 insertions, 17 deletions
diff --git a/Source/Core/DiscIO/Filesystem.cpp b/Source/Core/DiscIO/Filesystem.cpp
index 6171c3004f..4228afdb72 100644
--- a/Source/Core/DiscIO/Filesystem.cpp
+++ b/Source/Core/DiscIO/Filesystem.cpp
@@ -4,7 +4,6 @@
#include "DiscIO/Filesystem.h"
#include <memory>
-#include "DiscIO/FileSystemGCWii.h"
#include "DiscIO/Volume.h"
namespace DiscIO
@@ -18,20 +17,4 @@ FileSystem::FileSystem(const Volume* volume, const Partition& partition)
FileSystem::~FileSystem() = default;
-std::unique_ptr<FileSystem> CreateFileSystem(const Volume* volume, const Partition& partition)
-{
- if (!volume)
- return nullptr;
-
- std::unique_ptr<FileSystem> filesystem = std::make_unique<FileSystemGCWii>(volume, partition);
-
- if (!filesystem)
- return nullptr;
-
- if (!filesystem->IsValid())
- filesystem.reset();
-
- return filesystem;
-}
-
} // namespace