summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2017-11-16 12:13:24 +0100
committerLinus Färnstrand <linus@mullvad.net>2017-11-17 10:26:06 +0100
commit25ffbf5c9b9c942b0d0b13d896f7bdd2acec2341 (patch)
tree20fe6bd36d75536c3bc1ec6d8322a6d06b3f4f5d
parent2e8d2fdab8e6a4f6413c87b1680844331441abae (diff)
downloadmullvadvpn-25ffbf5c9b9c942b0d0b13d896f7bdd2acec2341.tar.xz
mullvadvpn-25ffbf5c9b9c942b0d0b13d896f7bdd2acec2341.zip
Remove unused connect() helper methods
-rw-r--r--mullvad-rpc/src/lib.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/mullvad-rpc/src/lib.rs b/mullvad-rpc/src/lib.rs
index f0d32ad9ee..bfbf4c6ab6 100644
--- a/mullvad-rpc/src/lib.rs
+++ b/mullvad-rpc/src/lib.rs
@@ -36,13 +36,6 @@ jsonrpc_client!(pub struct AccountsProxy {
pub fn get_expiry(&mut self, account_token: AccountToken) -> RpcRequest<DateTime<Utc>>;
});
-impl AccountsProxy<HttpHandle> {
- pub fn connect() -> Result<Self, HttpError> {
- let transport = HttpTransport::new()?.handle(MASTER_API_URI)?;
- Ok(AccountsProxy::new(transport))
- }
-}
-
jsonrpc_client!(pub struct ProblemReportProxy {
pub fn problem_report(&mut self, email: &str, message: &str, log: &str) -> RpcRequest<()>;
});
@@ -57,10 +50,3 @@ impl ProblemReportProxy<HttpHandle> {
jsonrpc_client!(pub struct RelayListProxy {
pub fn relay_list(&mut self) -> RpcRequest<RelayList>;
});
-
-impl RelayListProxy<HttpHandle> {
- pub fn connect() -> Result<Self, HttpError> {
- let transport = HttpTransport::new()?.handle(MASTER_API_URI)?;
- Ok(RelayListProxy::new(transport))
- }
-}