diff options
| author | Zach Hilman <zachhilman@gmail.com> | 2018-10-02 20:04:31 -0400 |
|---|---|---|
| committer | Zach Hilman <zachhilman@gmail.com> | 2018-10-19 14:02:07 -0400 |
| commit | a25d79cfaad99e7659a8123d41dc0969e854259b (patch) | |
| tree | ca5adf2b2f4e944099cbe672c0819d841294d64d /src/core/file_sys/vfs_vector.cpp | |
| parent | 12401a0d8774ab73d1195507a12d777a81b97029 (diff) | |
vfs: Remove InterpretAsDirectory and related functions
When writing VFS, it initally seemed useful to include a function to in-place convert container files into directories in one homogenous directory structure, but re-evaluating it now there have been plenty of chances to use it and there has always been a better way. Removing as it is unused and likely will not be used.
Diffstat (limited to 'src/core/file_sys/vfs_vector.cpp')
| -rw-r--r-- | src/core/file_sys/vfs_vector.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/core/file_sys/vfs_vector.cpp b/src/core/file_sys/vfs_vector.cpp index 389c7e003..808f31e81 100644 --- a/src/core/file_sys/vfs_vector.cpp +++ b/src/core/file_sys/vfs_vector.cpp @@ -132,11 +132,4 @@ void VectorVfsDirectory::AddFile(VirtualFile file) { void VectorVfsDirectory::AddDirectory(VirtualDir dir) { dirs.push_back(std::move(dir)); } - -bool VectorVfsDirectory::ReplaceFileWithSubdirectory(VirtualFile file, VirtualDir dir) { - if (!DeleteFile(file->GetName())) - return false; - dirs.emplace_back(std::move(dir)); - return true; -} } // namespace FileSys |
