disk_archive: Remove unused total_entries_in_directory member from DiskDirectory

Also converts initializer list assignments to in-class initializers
where relevant.
This commit is contained in:
Lioncash 2018-03-28 19:40:30 -04:00
parent 11b9d303da
commit ed64d15060
2 changed files with 2 additions and 3 deletions

View File

@ -52,7 +52,7 @@ bool DiskFile::Close() const {
////////////////////////////////////////////////////////////////////////////////////////////////////
DiskDirectory::DiskDirectory(const std::string& path) : directory() {
DiskDirectory::DiskDirectory(const std::string& path) {
unsigned size = FileUtil::ScanDirectoryTree(path, directory);
directory.size = size;
directory.isDirectory = true;

View File

@ -59,8 +59,7 @@ public:
}
protected:
u32 total_entries_in_directory;
FileUtil::FSTEntry directory;
FileUtil::FSTEntry directory{};
// We need to remember the last entry we returned, so a subsequent call to Read will continue
// from the next one. This iterator will always point to the next unread entry.