Remove unused setFromVector function

This commit is contained in:
Benjamin Loison 2023-02-23 23:50:07 +01:00
parent 572f9e121f
commit 9d433ba2f3
Signed by: Benjamin_Loison
SSH Key Fingerprint: SHA256:BtnEgYTlHdOg1u+RmYcDE0mnfz1rhv5dSbQ2gyxW8B8

View File

@ -16,7 +16,6 @@ using json = nlohmann::json;
// Concerning `returnErrorIfPlaylistNotFound`, it is used when not trying to retrieve a channel `uploads` playlist content as it seems to always work.
enum getJsonBehavior { normal, retryOnCommentsDisabled, returnErrorIfPlaylistNotFound };
set<string> setFromVector(vector<string> vec);
vector<string> getFileContent(string filePath);
json getJson(unsigned short threadId, string url, bool usingYouTubeDataApiV3, string channelId, getJsonBehavior behavior = normal);
void createDirectory(string path),
@ -826,12 +825,6 @@ string getDate()
return toString.str();
}
// Returns a set from a given vector.
set<string> setFromVector(vector<string> vec)
{
return set(vec.begin(), vec.end());
}
// Return file lines as a vector of the file at the given `filePath`.
vector<string> getFileContent(string filePath)
{