From e4de26e5dcb75e3c12cac99ca18a0299db16a291 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Mon, 8 Sep 2025 16:42:42 -0400 Subject: [PATCH] cloud_llm_client: Remove unused code (#37799) This PR removes some unused code from the `cloud_llm_client`. This was only used on the server, so we can move it there. Release Notes: - N/A --- .../cloud_llm_client/src/cloud_llm_client.rs | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/crates/cloud_llm_client/src/cloud_llm_client.rs b/crates/cloud_llm_client/src/cloud_llm_client.rs index 741945af1087e7a4ff5edfc32cca4d080db3982f..d5a21bfe20938cc981db740a674f4016b9328d96 100644 --- a/crates/cloud_llm_client/src/cloud_llm_client.rs +++ b/crates/cloud_llm_client/src/cloud_llm_client.rs @@ -86,32 +86,6 @@ pub enum Plan { ZedProTrial, } -impl Plan { - pub fn as_str(&self) -> &'static str { - match self { - Plan::ZedFree => "zed_free", - Plan::ZedPro => "zed_pro", - Plan::ZedProTrial => "zed_pro_trial", - } - } - - pub fn model_requests_limit(&self) -> UsageLimit { - match self { - Plan::ZedPro => UsageLimit::Limited(500), - Plan::ZedProTrial => UsageLimit::Limited(150), - Plan::ZedFree => UsageLimit::Limited(50), - } - } - - pub fn edit_predictions_limit(&self) -> UsageLimit { - match self { - Plan::ZedPro => UsageLimit::Unlimited, - Plan::ZedProTrial => UsageLimit::Unlimited, - Plan::ZedFree => UsageLimit::Limited(2_000), - } - } -} - impl FromStr for Plan { type Err = anyhow::Error;