summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Drysdale <drysdale@google.com>2024-04-12 08:12:45 +0100
committerDavid Drysdale <drysdale@google.com>2024-04-12 14:38:28 +0000
commite2b37b6c622d522ba2be32b66c14790bc89bfca9 (patch)
tree4a1af94b08853f5c8eabf19ee01398408203fa15
parent5c5a412b3cff6b1ac349cb1166d490d48ae2f1ff (diff)
downloadsecurity-e2b37b6c622d522ba2be32b66c14790bc89bfca9.tar.gz
Drop unused PerBootDbKeepAlive type
Looks like the DB was moved out of SQLite in aosp/1699645 but the connection-holding type was missed. Bug: 333894699 Test: TreeHugger Change-Id: I4b87690343bc890cb1aa1c6e1595ac4b42c11670
-rw-r--r--keystore2/src/database.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/keystore2/src/database.rs b/keystore2/src/database.rs
index dd64764b..0cc982a8 100644
--- a/keystore2/src/database.rs
+++ b/keystore2/src/database.rs
@@ -842,12 +842,6 @@ impl AuthTokenEntry {
}
}
-/// Shared in-memory databases get destroyed as soon as the last connection to them gets closed.
-/// This object does not allow access to the database connection. But it keeps a database
-/// connection alive in order to keep the in memory per boot database alive.
-#[allow(dead_code)]
-pub struct PerBootDbKeepAlive(Connection);
-
impl KeystoreDB {
const UNASSIGNED_KEY_ID: i64 = -1i64;
const CURRENT_DB_VERSION: u32 = 1;