Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

cloud_llm_client: Remove unused code (#47774)

Marshall Bowers39b34f8f3362
diff --git a/crates/cloud_llm_client/src/cloud_llm_client.rs b/crates/cloud_llm_client/src/cloud_llm_client.rs
index 61340199ac8..a03b4f3ebbc 100644
--- a/crates/cloud_llm_client/src/cloud_llm_client.rs
+++ b/crates/cloud_llm_client/src/cloud_llm_client.rs
@@ -79,12 +79,6 @@ pub enum Plan {
V2(PlanV2),
}
-impl Plan {
- pub fn is_v2(&self) -> bool {
- matches!(self, Self::V2(_))
- }
-}
-
#[derive(Debug, Clone, Copy, Default, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum PlanV2 {
@@ -94,19 +88,6 @@ pub enum PlanV2 {
ZedProTrial,
}
-impl FromStr for PlanV2 {
- type Err = anyhow::Error;
-
- fn from_str(value: &str) -> Result<Self, Self::Err> {
- match value {
- "zed_free" => Ok(Self::ZedFree),
- "zed_pro" => Ok(Self::ZedPro),
- "zed_pro_trial" => Ok(Self::ZedProTrial),
- plan => Err(anyhow::anyhow!("invalid plan: {plan:?}")),
- }
- }
-}
-
#[derive(
Debug, PartialEq, Eq, Hash, Clone, Copy, Serialize, Deserialize, EnumString, EnumIter, Display,
)]