diff --git a/include/cpp_restapi/base_connection.hpp b/include/cpp_restapi/base_connection.hpp index 916028a..71f8170 100644 --- a/include/cpp_restapi/base_connection.hpp +++ b/include/cpp_restapi/base_connection.hpp @@ -16,7 +16,6 @@ namespace cpp_restapi class CPP_RESTAPI_EXPORT BaseConnection: public cpp_restapi::IConnection { public: - [[deprecated]] explicit BaseConnection(const std::string& address, const std::string& token); explicit BaseConnection(const std::string& address, const std::map& headerEntries); std::string get(const std::string &) final; diff --git a/src/base_connection.cpp b/src/base_connection.cpp index c0e7661..01c542e 100644 --- a/src/base_connection.cpp +++ b/src/base_connection.cpp @@ -28,13 +28,6 @@ namespace namespace cpp_restapi { -BaseConnection::BaseConnection(const std::string& address, const std::string& token) - : m_address(address) -{ - if (token.empty() == false) - m_headerEntries.emplace("Authorization", "token " + token); -} - BaseConnection::BaseConnection(const std::string& address, const std::map& headerEntries) : m_address(address) , m_headerEntries(headerEntries)