diff options
| author | JosJuice <josjuice@gmail.com> | 2017-07-04 20:27:18 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-07-04 20:40:32 +0200 |
| commit | 93e974068328d435792ade46e7488fe1009c6584 (patch) | |
| tree | 3c790fa62ab17446c6604908ff6d6c5c387c5038 /Source/Core/DiscIO/FileSystemGCWii.cpp | |
| parent | 6a31d2598e1273dc40a0149821345107368f6502 (diff) | |
Drop unnecessary check from FileSystemGCWii::FindFileInfo
If the current file_info is a file, the ranged for loop will
run 0 times, and we'll reach the last line of the function.
Diffstat (limited to 'Source/Core/DiscIO/FileSystemGCWii.cpp')
| -rw-r--r-- | Source/Core/DiscIO/FileSystemGCWii.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/FileSystemGCWii.cpp b/Source/Core/DiscIO/FileSystemGCWii.cpp index 6abcc016e0..fca68113ba 100644 --- a/Source/Core/DiscIO/FileSystemGCWii.cpp +++ b/Source/Core/DiscIO/FileSystemGCWii.cpp @@ -277,10 +277,6 @@ std::unique_ptr<FileInfo> FileSystemGCWii::FindFileInfo(const std::string& path, if (name_start == path.size()) return file_info.clone(); // We're done - // It's only possible to search in directories. Searching in a file is an error - if (!file_info.IsDirectory()) - return nullptr; - const size_t name_end = path.find('/', name_start); const std::string name = path.substr(name_start, name_end - name_start); const std::string rest_of_path = (name_end != std::string::npos) ? path.substr(name_end + 1) : ""; |
