Skip to content

Commit

Permalink
Drop dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kicer86 committed Dec 9, 2023
1 parent 82d5f40 commit dff88b0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion include/cpp_restapi/base_connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string, std::string>& headerEntries);

std::string get(const std::string &) final;
Expand Down
7 changes: 0 additions & 7 deletions src/base_connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string, std::string>& headerEntries)
: m_address(address)
, m_headerEntries(headerEntries)
Expand Down

0 comments on commit dff88b0

Please sign in to comment.