From 33490eddab385ca488b11d6d50683ddb6a18da6c Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Sun, 15 Jul 2018 19:09:08 +0300 Subject: Remove the v2 namespace from the http client --- src/MatrixClient.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/MatrixClient.cc') diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc index 9e69dbbd..e41c66c1 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc @@ -3,26 +3,23 @@ #include namespace { -auto v2_client_ = std::make_shared(); +auto client_ = std::make_shared(); } namespace http { -namespace v2 { mtx::http::Client * client() { - return v2_client_.get(); + return client_.get(); } bool is_logged_in() { - return !v2_client_->access_token().empty(); + return !client_->access_token().empty(); } -} // namespace v2 - void init() { -- cgit 1.5.1