From 989f01ad230423c5a5105d6c9ff8580020e902ed Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Wed, 10 Jun 2026 22:26:10 +0200 Subject: chore: Remove more useless code --- crates/atuin-client/src/meta.rs | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'crates/atuin-client/src/meta.rs') diff --git a/crates/atuin-client/src/meta.rs b/crates/atuin-client/src/meta.rs index eb6dd8cf..870f36d0 100644 --- a/crates/atuin-client/src/meta.rs +++ b/crates/atuin-client/src/meta.rs @@ -21,7 +21,6 @@ const KEY_LAST_SYNC: &str = "last_sync_time"; const KEY_LAST_VERSION_CHECK: &str = "last_version_check_time"; const KEY_LATEST_VERSION: &str = "latest_version"; const KEY_SESSION: &str = "session"; -const KEY_HUB_SESSION: &str = "hub_session"; const KEY_FILES_MIGRATED: &str = "files_migrated"; pub struct MetaStore { @@ -187,25 +186,7 @@ impl MetaStore { } pub async fn logged_in(&self) -> Result { - Ok(self.session_token().await?.is_some() || self.hub_session_token().await?.is_some()) - } - - // Hub session methods (separate from sync session, used for Hub-specific features like AI) - - pub async fn hub_session_token(&self) -> Result> { - self.get(KEY_HUB_SESSION).await - } - - pub async fn save_hub_session(&self, token: &str) -> Result<()> { - self.set(KEY_HUB_SESSION, token).await - } - - pub async fn delete_hub_session(&self) -> Result<()> { - self.delete(KEY_HUB_SESSION).await - } - - pub async fn hub_logged_in(&self) -> Result { - Ok(self.hub_session_token().await?.is_some()) + Ok(self.session_token().await?.is_some()) } // File migration: on first open, migrate old plain-text files into the database. -- cgit v1.3.1