From 0278b7766721ab8964b0839bb0084abbf330c241 Mon Sep 17 00:00:00 2001 From: Benjamin Loison Date: Thu, 23 Feb 2023 23:50:07 +0100 Subject: [PATCH] Remove unused `setFromVector` function --- main.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/main.cpp b/main.cpp index 8605fb8..ff5dcb8 100644 --- a/main.cpp +++ b/main.cpp @@ -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 setFromVector(vector vec); vector 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 setFromVector(vector vec) -{ - return set(vec.begin(), vec.end()); -} - // Return file lines as a vector of the file at the given `filePath`. vector getFileContent(string filePath) {