remove dead split_labels helper

Its only caller was the deleted yoloworld_onnx.cc.
This commit is contained in:
2026-09-07 14:29:52 -03:00
parent f1934c9b4a
commit d6ae0f7fef
2 changed files with 1 additions and 18 deletions
-17
View File
@@ -5,8 +5,6 @@
#include <algorithm>
#include <cmath>
#include <sstream>
#include <string>
#include <vector>
namespace engines::detail {
@@ -135,19 +133,4 @@ inline void backproject(float u, float v, float z,
Y = (v - cy) * z / fy;
}
// --- Label parsing ---
inline std::vector<std::string> split_labels(const std::string& s) {
std::vector<std::string> out;
std::stringstream ss(s);
std::string tok;
while (std::getline(ss, tok, ',')) {
size_t l = tok.find_first_not_of(" \t");
size_t r = tok.find_last_not_of(" \t");
if (l != std::string::npos)
out.push_back(tok.substr(l, r - l + 1));
}
return out;
}
} // namespace engines::detail