From e2b37b6c622d522ba2be32b66c14790bc89bfca9 Mon Sep 17 00:00:00 2001 From: David Drysdale Date: Fri, 12 Apr 2024 08:12:45 +0100 Subject: 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 --- keystore2/src/database.rs | 6 ------ 1 file changed, 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; -- cgit v1.2.3