Skip to content

Commit f5f06fa

Browse files
committed
Remove test code and merge conflict
1 parent cfd071a commit f5f06fa

File tree

6 files changed

+5
-71
lines changed

6 files changed

+5
-71
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/bitwarden-state/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ log = { workspace = true }
2020
thiserror = { workspace = true }
2121

2222
[dev-dependencies]
23-
tokio = { workspace = true }
23+
tokio = { workspace = true, features = ["rt"] }
2424

2525
[lints]
2626
workspace = true

crates/bitwarden-uniffi/src/vault/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,4 @@ impl VaultClient {
7171
.generate_totp_cipher_view(view, time)
7272
.map_err(Error::Totp)?)
7373
}
74-
75-
pub async fn print_the_ciphers(&self) -> String {
76-
self.0.print_the_ciphers().await
77-
}
7874
}

crates/bitwarden-vault/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ keywords.workspace = true
1818
uniffi = [
1919
"bitwarden-core/uniffi",
2020
"bitwarden-crypto/uniffi",
21-
"dep:uniffi",
21+
"dep:uniffi"
2222
] # Uniffi bindings
2323
wasm = [
2424
"bitwarden-core/wasm",
2525
"dep:tsify-next",
26-
"dep:wasm-bindgen",
27-
"dep:wasm-bindgen-futures",
26+
"dep:wasm-bindgen"
2827
] # WASM support
2928

3029
[dependencies]
@@ -49,7 +48,6 @@ tsify-next = { workspace = true, optional = true }
4948
uniffi = { workspace = true, optional = true }
5049
uuid = { workspace = true }
5150
wasm-bindgen = { workspace = true, optional = true }
52-
wasm-bindgen-futures = { workspace = true, optional = true }
5351

5452
[dev-dependencies]
5553
tokio = { workspace = true, features = ["rt"] }

crates/bitwarden-vault/src/vault_client.rs

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use wasm_bindgen::prelude::*;
44

55
use crate::{
66
sync::{sync, SyncError},
7-
AttachmentsClient, Cipher, CiphersClient, CollectionsClient, FoldersClient,
8-
PasswordHistoryClient, SyncRequest, SyncResponse, TotpClient,
7+
AttachmentsClient, CiphersClient, CollectionsClient, FoldersClient, PasswordHistoryClient,
8+
SyncRequest, SyncResponse, TotpClient,
99
};
1010

1111
#[allow(missing_docs)]
@@ -69,22 +69,6 @@ impl VaultClient {
6969
client: self.client.clone(),
7070
}
7171
}
72-
73-
/// Test method, prints all ciphers in the vault
74-
pub async fn print_the_ciphers(&self) -> String {
75-
let store = self
76-
.client
77-
.platform()
78-
.state()
79-
.get_client_managed::<Cipher>()
80-
.expect("msg");
81-
let mut result = String::new();
82-
let ciphers = store.list().await.expect("msg");
83-
for cipher in ciphers {
84-
result.push_str(format!("{cipher:?}\n").as_str());
85-
}
86-
result
87-
}
8872
}
8973

9074
#[allow(missing_docs)]

crates/bitwarden-wasm-internal/src/vault/mod.rs

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)