Remove unused account session clear helper

This commit is contained in:
Dhruv
2026-06-03 12:37:16 +05:30
parent 6cd74b200b
commit f784c753f1

View File

@@ -311,14 +311,6 @@ impl<'a> AccountSessionsStore<'a> {
}
}
fn clear(&self) -> std::io::Result<()> {
match std::fs::remove_file(self.path()) {
Ok(()) => Ok(()),
Err(err) if err.kind() == std::io::ErrorKind::NotFound => Ok(()),
Err(err) => Err(err),
}
}
fn read(&self) -> std::io::Result<Option<StoredAccountSessions>> {
match std::fs::read_to_string(self.path()) {
Ok(payload) => serde_json::from_str(&payload)