diff --git a/lib/json.cpp b/lib/json.cpp index ab716a6b..928c410b 100644 --- a/lib/json.cpp +++ b/lib/json.cpp @@ -992,18 +992,3 @@ JSON::Value JSON::fromDTMI2(const unsigned char * data, unsigned int len, unsign tmp["trackid"] = tmpTrackID; return tmp; } - -std::string JSON::encodeVector(std::vector<long long int> & toEncode){ - std::string result; - for(int i = 0; i < toEncode.size(); i++){ - long long int temp = toEncode[i]; - while( temp >= 0xFFFF){ - result += (char)0xFF; - result += (char)0xFF; - temp -= 0xFFFF; - } - result += (char)temp / 255; - result += (char)temp % 255; - } - return result; -} diff --git a/lib/json.h b/lib/json.h index 9c6d2010..fea93476 100644 --- a/lib/json.h +++ b/lib/json.h @@ -108,8 +108,6 @@ namespace JSON { Value fromString(std::string json); Value fromFile(std::string filename); - std::string encodeVector(std::vector<long long int> & toEncode); - template <typename T> std::string encodeVector(T begin, T end){ std::string result;