From 9ae50917dd0f555424d2ca471d9ddfb74fe18042 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 12 Jan 2020 17:39:39 +0100 Subject: [PATCH] Remove Instance::get_proxy() and Instance::get_cainfo(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can't get the values that were set using environment variables or build-time options. We don't need them anymore for initializing “Connection”s. --- include/instance.hpp | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/include/instance.hpp b/include/instance.hpp index 198746c..df62646 100644 --- a/include/instance.hpp +++ b/include/instance.hpp @@ -150,19 +150,6 @@ public: CURLWrapper::set_proxy(proxy); } - /*! - * @brief Returns the proxy string that was previously set. - * - * Does not return the proxy if it was set from an environment variable. - * - * @since 0.1.0 - */ - [[nodiscard]] - string_view get_proxy() const noexcept - { - return _proxy; - } - /*! * @brief Returns the NodeInfo of the instance. * @@ -202,18 +189,6 @@ public: CURLWrapper::set_cainfo(path); } - /*! - * @brief Returns the cainfo path that was previously set. - * - * This is used when initializing a Connection. - * - * @since 0.3.0 - */ - string_view get_cainfo() const noexcept - { - return _cainfo; - } - void set_useragent(const string_view useragent) { _useragent = useragent;