Get rid of unnecessary templating

This commit is contained in:
Gent Semaj 2024-10-27 01:50:45 -07:00
parent 1bc06b354d
commit dd0b18bd04
Signed by untrusted user: ycc
GPG Key ID: 2D76C57BF6BEADC4

View File

@ -140,14 +140,13 @@ static void bufferAppearanceData(std::vector<std::vector<T>>& slices, const T& d
slices.push_back(std::vector<T>()); slices.push_back(std::vector<T>());
} }
template<class T> static void bufferIdForDisappearance(std::vector<std::vector<int32_t>>& slices, int32_t id, size_t maxCnt) {
static void bufferIdForDisappearance(std::vector<std::vector<T>>& slices, int32_t id, size_t maxCnt) {
if (slices.empty()) if (slices.empty())
slices.push_back(std::vector<T>()); slices.push_back(std::vector<int32_t>());
std::vector<T>& slice = slices[slices.size() - 1]; std::vector<int32_t>& slice = slices[slices.size() - 1];
slice.push_back(id); slice.push_back(id);
if (slice.size() == maxCnt) if (slice.size() == maxCnt)
slices.push_back(std::vector<T>()); slices.push_back(std::vector<int32_t>());
} }
void Chunking::addEntityToChunks(std::set<Chunk*> chnks, const EntityRef ref) { void Chunking::addEntityToChunks(std::set<Chunk*> chnks, const EntityRef ref) {