From ed9e147695e4c5e800e83654baf365a634f3a2a7 Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Wed, 12 Oct 2016 15:32:14 -0400 Subject: Abstract out mutex type. Make threads optional. --- src/lib/utils/http_util/http_util.cpp | 5 ----- src/lib/utils/http_util/http_util.h | 4 ---- 2 files changed, 9 deletions(-) (limited to 'src/lib/utils/http_util') diff --git a/src/lib/utils/http_util/http_util.cpp b/src/lib/utils/http_util/http_util.cpp index 1286e4026..5624f2e4f 100644 --- a/src/lib/utils/http_util/http_util.cpp +++ b/src/lib/utils/http_util/http_util.cpp @@ -226,11 +226,6 @@ Response POST_sync(const std::string& url, return http_sync("POST", url, content_type, body, allowable_redirects); } -std::future GET_async(const std::string& url, size_t allowable_redirects) - { - return std::async(std::launch::async, GET_sync, url, allowable_redirects); - } - } } diff --git a/src/lib/utils/http_util/http_util.h b/src/lib/utils/http_util/http_util.h index 6688285c6..918dfc269 100644 --- a/src/lib/utils/http_util/http_util.h +++ b/src/lib/utils/http_util/http_util.h @@ -10,7 +10,6 @@ #include #include -#include #include #include #include @@ -88,9 +87,6 @@ BOTAN_DLL Response POST_sync(const std::string& url, const std::vector& body, size_t allowable_redirects = 1); -std::future BOTAN_DLL GET_async(const std::string& url, - size_t allowable_redirects = 1); - BOTAN_DLL std::string url_encode(const std::string& url); } -- cgit v1.2.3