summaryrefslogtreecommitdiff
path: root/include/tgbot/net/HttpReqArg.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/tgbot/net/HttpReqArg.h')
-rw-r--r--include/tgbot/net/HttpReqArg.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/include/tgbot/net/HttpReqArg.h b/include/tgbot/net/HttpReqArg.h
index 5056e6c..5aa60fd 100644
--- a/include/tgbot/net/HttpReqArg.h
+++ b/include/tgbot/net/HttpReqArg.h
@@ -25,6 +25,7 @@
#include <string>
#include <vector>
+#include <functional>
#include <boost/lexical_cast.hpp>
@@ -43,22 +44,6 @@ public:
{
}
- template<typename T>
- HttpReqArg(const std::string& name, const std::vector<T>& list, function<std::string (const T&)> parsingFunction){
- this->name = name;
- value = "[";
- for (const T& item : list){
- value += parsingFunction(item);
- value += ',';
- }
- value.erase(this->value.length() - 1);
- value += ']';
-
- isFile = false;
- mimeType = "text/plain";
- fileName = "";
- }
-
/**
* Name of an argument.
*/