enable dead_code lint

This commit is contained in:
Charles Hall 2024-05-21 21:58:43 -07:00
parent 518d0c9cf3
commit d7e945f4c5
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
17 changed files with 15 additions and 137 deletions

View file

@ -406,19 +406,6 @@ impl service::users::Data for KeyValueDatabase {
Ok(())
}
fn last_one_time_keys_update(&self, user_id: &UserId) -> Result<u64> {
self.userid_lastonetimekeyupdate.get(user_id.as_bytes())?.map_or(
Ok(0),
|bytes| {
utils::u64_from_bytes(&bytes).map_err(|_| {
Error::bad_database(
"Count in roomid_lastroomactiveupdate is invalid.",
)
})
},
)
}
fn take_one_time_key(
&self,
user_id: &UserId,