summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-10-30 13:36:08 +0800
committerGitHub <noreply@github.com>2023-10-30 13:36:08 +0800
commitba3cc4f15dd4b7457bbcacc64fcdbdbb0362d473 (patch)
tree0689264c52b226c9fe88b1fb6730715a74b5a2a0 /src/config
parent2f9121e515150981ac061389656c33eea577c336 (diff)
downloadaichat-ba3cc4f15dd4b7457bbcacc64fcdbdbb0362d473.tar.gz
feat: deprecate history file (#179)
Diffstat (limited to 'src/config')
-rw-r--r--src/config/mod.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 4437833..695dad5 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -27,7 +27,6 @@ use std::{
const CONFIG_FILE_NAME: &str = "config.yaml";
const ROLES_FILE_NAME: &str = "roles.yaml";
-const HISTORY_FILE_NAME: &str = "history.txt";
const MESSAGES_FILE_NAME: &str = "messages.md";
const SESSIONS_DIR_NAME: &str = "sessions";
@@ -221,10 +220,6 @@ impl Config {
)
}
- pub fn history_file() -> Result<PathBuf> {
- Self::local_path(HISTORY_FILE_NAME)
- }
-
pub fn messages_file() -> Result<PathBuf> {
Self::local_path(MESSAGES_FILE_NAME)
}