Removing unneeded fs entry type.

This commit is contained in:
Ben Vanik
2015-02-09 16:59:28 -08:00
parent 78451a4e9e
commit cc6d03ab2c
13 changed files with 18 additions and 38 deletions

View File

@@ -62,10 +62,7 @@ std::unique_ptr<Entry> STFSContainerDevice::ResolvePath(const char* path) {
}
}
Entry::Type type = stfs_entry->attributes & X_FILE_ATTRIBUTE_DIRECTORY
? Entry::Type::DIRECTORY
: Entry::Type::FILE;
return std::make_unique<STFSContainerEntry>(type, this, path, mmap_.get(),
return std::make_unique<STFSContainerEntry>(this, path, mmap_.get(),
stfs_entry);
}