| 670 | } |
| 671 | |
| 672 | void DataCompiler::remove_file(const char *path) |
| 673 | { |
| 674 | TempAllocator512 ta; |
| 675 | DynamicString path_str(ta); |
| 676 | path_str.set(path, strlen32(path)); |
| 677 | |
| 678 | // Mark the entry as deleted but do not remove it from the map. We still |
| 679 | // need to know which resource has been deleted in order to remove its |
| 680 | // associated BLOB in the data directory at the next compile() call. |
| 681 | Stat st; |
| 682 | st.file_type = Stat::NO_ENTRY; |
| 683 | st.size = 0; |
| 684 | st.mtime = 0; |
| 685 | hash_map::set(_source_index._paths, path_str, st); |
| 686 | |
| 687 | notify_remove_file(path); |
| 688 | } |
| 689 | |
| 690 | void DataCompiler::add_tree(const char *path) |
| 691 | { |
nothing calls this directly
no test coverage detected