Skip to content

Commit bd8838c

Browse files
author
Bennett Hardwick
committed
Cleanup
1 parent 79bd721 commit bd8838c

File tree

6 files changed

+0
-52
lines changed

6 files changed

+0
-52
lines changed

cipherstash-dynamodb-derive/src/settings/builder.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,6 @@ impl SettingsBuilder {
349349

350350
let sort_key_prefix = sort_key_prefix.into_prefix(&type_name);
351351

352-
// let partition_key_field = partition_key_field.ok_or_else(|| {
353-
// syn::Error::new(
354-
// proc_macro2::Span::call_site(),
355-
// "Missing required attribute: #[partition_key]",
356-
// )
357-
// })?;
358-
359352
Ok(Settings {
360353
ident,
361354
sort_key_prefix,

examples/common/license.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,4 @@ mod tests {
3535
fn test_cipherstash_typename() {
3636
assert_eq!(License::type_name(), "license");
3737
}
38-
39-
// #[test]
40-
// fn test_cipherstash_instance() {
41-
// let license = License::new("[email protected]", "1234", "2020-01-01");
42-
// assert_eq!(license.partition_key(), "[email protected]");
43-
// assert_eq!(
44-
// License::protected_attributes(),
45-
// vec!["email", "expires", "number"]
46-
// );
47-
// assert!(License::plaintext_attributes().is_empty());
48-
// }
4938
}

examples/common/user.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ mod tests {
3838
assert_eq!(User::type_name(), "user");
3939
}
4040

41-
// #[test]
42-
// fn test_cipherstash_instance() {
43-
// let user = User::new("[email protected]", "Person Name");
44-
// assert_eq!(user.partition_key(), "[email protected]");
45-
// }
46-
4741
#[test]
4842
fn test_cipherstash_attributes() {
4943
assert_eq!(

src/encrypted_table/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
pub mod prepared_record;
21
pub mod query;
32
mod table_entry;
43
pub use self::{

src/encrypted_table/prepared_record.rs

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

src/encrypted_table/query.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ use cipherstash_client::encryption::{compound_indexer::CompoundIndex, IndexTerm}
1717

1818
use super::{Dynamo, EncryptedTable, QueryError};
1919

20-
/*
21-
* S = Searchable
22-
* T = Decryptable type
23-
* D = Database
24-
*
25-
*/
2620
pub struct QueryBuilder<S, B = ()> {
2721
parts: Vec<(String, SingleIndex, Plaintext)>,
2822
backend: B,

0 commit comments

Comments
 (0)