summaryrefslogtreecommitdiffstats
path: root/src/connection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/connection.cpp')
-rw-r--r--src/connection.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 0eba695..77e7ad0 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -21,26 +21,6 @@ namespace mastodonpp
using std::holds_alternative;
-Connection::Connection(Instance &instance)
- : _instance{instance}
- , _baseuri{instance.get_baseuri()}
-{
- auto proxy{_instance.get_proxy()};
- if (!proxy.empty())
- {
- CURLWrapper::set_proxy(proxy);
- }
-
- if (!_instance.get_access_token().empty())
- {
- CURLWrapper::set_access_token(_instance.get_access_token());
- }
- if (!_instance.get_cainfo().empty())
- {
- CURLWrapper::set_cainfo(_instance.get_cainfo());
- }
-}
-
string Connection::endpoint_to_uri(const endpoint_variant &endpoint) const
{
if (holds_alternative<API::endpoint_type>(endpoint))