Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
chore: remove unused code
Nathan98b835227ed5
diff --git a/frontend/rust-lib/flowy-ai/src/middleware/chat_service_mw.rs b/frontend/rust-lib/flowy-ai/src/middleware/chat_service_mw.rsindex 54f1c929dd..5a529d4201 100644--- a/frontend/rust-lib/flowy-ai/src/middleware/chat_service_mw.rs+++ b/frontend/rust-lib/flowy-ai/src/middleware/chat_service_mw.rs@@ -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,diff --git a/frontend/rust-lib/flowy-ai/src/persistence/chat_sql.rs b/frontend/rust-lib/flowy-ai/src/persistence/chat_sql.rsindex e962f2c880..45e839ae7e 100644--- a/frontend/rust-lib/flowy-ai/src/persistence/chat_sql.rs+++ b/frontend/rust-lib/flowy-ai/src/persistence/chat_sql.rs@@ -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,diff --git a/frontend/rust-lib/flowy-core/src/deps_resolve/cloud_service_impl.rs b/frontend/rust-lib/flowy-core/src/deps_resolve/cloud_service_impl.rsindex 30fa6d0ae4..a84aff211c 100644--- a/frontend/rust-lib/flowy-core/src/deps_resolve/cloud_service_impl.rs+++ b/frontend/rust-lib/flowy-core/src/deps_resolve/cloud_service_impl.rs@@ -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,diff --git a/frontend/rust-lib/flowy-server/src/af_cloud/impls/chat.rs b/frontend/rust-lib/flowy-server/src/af_cloud/impls/chat.rsindex a92cd8ffa9..9bfd0e23fd 100644--- a/frontend/rust-lib/flowy-server/src/af_cloud/impls/chat.rs+++ b/frontend/rust-lib/flowy-server/src/af_cloud/impls/chat.rs@@ -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,diff --git a/frontend/rust-lib/flowy-server/src/local_server/impls/chat.rs b/frontend/rust-lib/flowy-server/src/local_server/impls/chat.rsindex bd49ffb75b..fe90f45e77 100644--- a/frontend/rust-lib/flowy-server/src/local_server/impls/chat.rs+++ b/frontend/rust-lib/flowy-server/src/local_server/impls/chat.rs@@ -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,