Remove obsolete code

This commit is contained in:
Patrick Nicolas
2025-07-25 22:10:47 +02:00
parent e358230a25
commit 44bbf00bf1
2 changed files with 0 additions and 29 deletions
-7
View File
@@ -19,13 +19,6 @@
#include "strings.h"
std::string utils::trim(std::string input)
{
input.resize(input.find_last_not_of("\n ") + 1);
return input;
}
std::vector<std::string> utils::split(const std::string & s, const std::string & sep)
{
std::string::size_type i = 0;
-22
View File
@@ -19,32 +19,10 @@
#pragma once
#include <sstream>
#include <string>
#include <vector>
namespace utils
{
std::string trim(std::string input);
template <typename T>
std::string join(const std::vector<T> & vec, const std::string & sep = ", ")
{
std::stringstream s;
if (!vec.empty())
{
s << vec[0];
for (size_t i = 1, n = vec.size(); i < n; i++)
{
s << sep << vec[i];
}
}
return s.str();
}
std::vector<std::string> split(const std::string & s, const std::string & sep = "\n");
} // namespace utils