chore: remove unused code

This commit is contained in:
Nathan 2025-04-17 11:22:14 +08:00
parent c633dd0919
commit 98b835227e
5 changed files with 0 additions and 41 deletions

View File

@ -368,13 +368,6 @@ impl ChatCloudService for AICloudServiceMiddleware {
}
}
async fn get_workspace_plan(
&self,
workspace_id: &Uuid,
) -> Result<Vec<SubscriptionPlan>, FlowyError> {
self.cloud_service.get_workspace_plan(workspace_id).await
}
async fn get_chat_settings(
&self,
workspace_id: &Uuid,

View File

@ -76,7 +76,6 @@ pub fn insert_chat(mut conn: DBConnection, new_chat: &ChatTable) -> QueryResult<
.execute(&mut *conn)
}
#[allow(dead_code)]
pub fn update_chat(
conn: &mut SqliteConnection,
changeset: ChatTableChangeset,

View File

@ -802,17 +802,6 @@ impl ChatCloudService for ServerProvider {
.await
}
async fn get_workspace_plan(
&self,
workspace_id: &Uuid,
) -> Result<Vec<SubscriptionPlan>, FlowyError> {
self
.get_server()?
.chat_service()
.get_workspace_plan(workspace_id)
.await
}
async fn get_chat_settings(
&self,
workspace_id: &Uuid,

View File

@ -226,18 +226,6 @@ where
);
}
async fn get_workspace_plan(
&self,
workspace_id: &Uuid,
) -> Result<Vec<SubscriptionPlan>, FlowyError> {
let plans = self
.inner
.try_get_client()?
.get_active_workspace_subscriptions(workspace_id.to_string().as_str())
.await?;
Ok(plans)
}
async fn get_chat_settings(
&self,
workspace_id: &Uuid,

View File

@ -134,16 +134,6 @@ impl ChatCloudService for LocalServerChatServiceImpl {
Err(FlowyError::not_support().with_context("indexing file is not supported in local server."))
}
async fn get_workspace_plan(
&self,
_workspace_id: &Uuid,
) -> Result<Vec<SubscriptionPlan>, FlowyError> {
Err(
FlowyError::not_support()
.with_context("Get local ai config is not supported in local server."),
)
}
async fn get_chat_settings(
&self,
_workspace_id: &Uuid,