Removed non-template encodeVector.

This commit is contained in:
Erik Zandvliet 2013-09-25 11:39:33 +02:00
parent eaeaad39e1
commit ca7b7940b5
2 changed files with 0 additions and 17 deletions

View file

@ -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;
}

View file

@ -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;