From 02a563214791e388f778939a881c61ccc51c4cfe Mon Sep 17 00:00:00 2001 From: Gent Semaj Date: Sun, 27 Oct 2024 01:50:45 -0700 Subject: [PATCH] Get rid of unnecessary templating --- src/Chunking.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Chunking.cpp b/src/Chunking.cpp index 61fc883..afdb298 100644 --- a/src/Chunking.cpp +++ b/src/Chunking.cpp @@ -140,14 +140,13 @@ static void bufferAppearanceData(std::vector>& slices, const T& d slices.push_back(std::vector()); } -template -static void bufferIdForDisappearance(std::vector>& slices, int32_t id, size_t maxCnt) { +static void bufferIdForDisappearance(std::vector>& slices, int32_t id, size_t maxCnt) { if (slices.empty()) - slices.push_back(std::vector()); - std::vector& slice = slices[slices.size() - 1]; + slices.push_back(std::vector()); + std::vector& slice = slices[slices.size() - 1]; slice.push_back(id); if (slice.size() == maxCnt) - slices.push_back(std::vector()); + slices.push_back(std::vector()); } void Chunking::addEntityToChunks(std::set chnks, const EntityRef ref) {