Removed non-template encodeVector.
This commit is contained in:
parent
eaeaad39e1
commit
ca7b7940b5
2 changed files with 0 additions and 17 deletions
15
lib/json.cpp
15
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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue