diff options
| author | David Lönnhager <david.l@mullvad.net> | 2021-06-16 10:22:47 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2021-06-18 11:53:28 +0200 |
| commit | 5453eece3a53c4cc45c8987a88789e43fb214912 (patch) | |
| tree | c36308988a46a5125949f47611e7f76cba21c27a /mullvad-cli/src | |
| parent | 335cc80d9347f43264765a3dd359eda83c782bc8 (diff) | |
| download | mullvadvpn-5453eece3a53c4cc45c8987a88789e43fb214912.tar.xz mullvadvpn-5453eece3a53c4cc45c8987a88789e43fb214912.zip | |
Update account history RPCs
Diffstat (limited to 'mullvad-cli/src')
| -rw-r--r-- | mullvad-cli/src/cmds/account.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/mullvad-cli/src/cmds/account.rs b/mullvad-cli/src/cmds/account.rs index 803cabde00..af3af0debd 100644 --- a/mullvad-cli/src/cmds/account.rs +++ b/mullvad-cli/src/cmds/account.rs @@ -35,10 +35,6 @@ impl Command for Account { .about("Removes the account number from the settings"), ) .subcommand( - clap::SubCommand::with_name("clear-history") - .about("Clear account history, along with removing all associated keys"), - ) - .subcommand( clap::SubCommand::with_name("create") .about("Creates a new account and sets it as the active one"), ) @@ -75,8 +71,6 @@ impl Command for Account { self.get().await } else if let Some(_matches) = matches.subcommand_matches("unset") { self.set(None).await - } else if let Some(_matches) = matches.subcommand_matches("clear-history") { - self.clear_history().await } else if let Some(_matches) = matches.subcommand_matches("create") { self.create().await } else if let Some(matches) = matches.subcommand_matches("redeem") { @@ -174,11 +168,4 @@ impl Account { let utc = chrono::DateTime::<chrono::Utc>::from_utc(ndt, chrono::Utc); utc.with_timezone(&chrono::Local).to_string() } - - async fn clear_history(&self) -> Result<()> { - let mut rpc = new_rpc_client().await?; - rpc.clear_account_history(()).await?; - println!("Removed account history and all associated keys"); - Ok(()) - } } |
