--------------------------------- PackageWriter::RemoveFile Remove a file without deleting it
| 75 | // Remove a file without deleting it |
| 76 | // |
| 77 | void PackageWriter::RemoveFile(core::File* const file) |
| 78 | { |
| 79 | auto entryIt = std::find_if(m_Files.begin(), m_Files.end(), [file](FileEntryInfo const& info) |
| 80 | { |
| 81 | return info.file == file; |
| 82 | }); |
| 83 | |
| 84 | if (entryIt != m_Files.cend()) |
| 85 | { |
| 86 | m_Files.erase(entryIt); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | //--------------------------------- |
| 91 | // PackageWriter::Cleanup |
no test coverage detected