DiscIO: Remove m_partition and m_volume from FileSystem

The last commit made m_partition unnecessary, and m_volume
has been unnecessary ever since the PR that added DiscExtractor.
This commit is contained in:
JosJuice
2017-08-02 18:34:44 +02:00
parent 38304da947
commit ca36c977d9
3 changed files with 6 additions and 19 deletions

View File

@ -106,7 +106,6 @@ protected:
class FileSystem
{
public:
FileSystem(const Volume* volume, const Partition& partition);
virtual ~FileSystem();
// If IsValid is false, GetRoot must not be called.
@ -118,11 +117,6 @@ public:
virtual std::unique_ptr<FileInfo> FindFileInfo(const std::string& path) const = 0;
// Returns nullptr if not found
virtual std::unique_ptr<FileInfo> FindFileInfo(u64 disc_offset) const = 0;
virtual const Partition GetPartition() const { return m_partition; }
protected:
const Volume* const m_volume;
const Partition m_partition;
};
// Calling Volume::GetFileSystem instead of manually constructing a filesystem is recommended,