mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-11-01 10:33:29 +00:00
chore: remove unused code
This commit is contained in:
parent
c633dd0919
commit
98b835227e
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user