| 78 | } |
| 79 | |
| 80 | void BinaryCache::RemoveBytecode(const char* path) |
| 81 | { |
| 82 | unsigned int hash = GetStringHash(path); |
| 83 | unsigned int i = 0; |
| 84 | for(; i < cache.size(); i++) |
| 85 | { |
| 86 | if(hash == cache[i].nameHash) |
| 87 | break; |
| 88 | } |
| 89 | if(i == cache.size()) |
| 90 | return; |
| 91 | |
| 92 | NULLC::dealloc((void*)cache[i].name); |
| 93 | delete[] cache[i].binary; |
| 94 | |
| 95 | cache[i] = cache.back(); |
| 96 | cache.pop_back(); |
| 97 | } |
| 98 | |
| 99 | const char* BinaryCache::EnumerateModules(unsigned id) |
| 100 | { |
nothing calls this directly
no test coverage detected