Simplify get_proxy().

This commit is contained in:
tastytea 2019-08-21 10:51:52 +02:00
parent 41a580b32b
commit 188033a0c1
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 2 additions and 8 deletions

View File

@ -300,16 +300,10 @@ void API::set_proxy(const string &proxy, const string &userpw)
}
void API::get_proxy(string &proxy, string &userpw) const
{
if (!_proxy.empty())
{
proxy = _proxy;
if (!_proxy_userpw.empty())
{
userpw = _proxy_userpw;
}
}
}
const parameters API::delete_params(const parameters &params,
const vector<string> &keys)