aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-client/src/meta.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-10 22:26:10 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-06-10 22:26:10 +0200
commit989f01ad230423c5a5105d6c9ff8580020e902ed (patch)
treeb750d06a9a39dcc76a1da7898b0748b0dad500cf /crates/atuin-client/src/meta.rs
parentchore: Remove some unused rust code (diff)
downloadatuin-989f01ad230423c5a5105d6c9ff8580020e902ed.zip
chore: Remove more useless code
Diffstat (limited to 'crates/atuin-client/src/meta.rs')
-rw-r--r--crates/atuin-client/src/meta.rs21
1 files changed, 1 insertions, 20 deletions
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<bool> {
- 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<Option<String>> {
- 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<bool> {
- 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.