diff --git a/backend/src/services/martin.rs b/backend/src/services/martin.rs index 7b73650..678fe30 100644 --- a/backend/src/services/martin.rs +++ b/backend/src/services/martin.rs @@ -62,29 +62,6 @@ impl MartinService { Ok((body, etag)) } - /// Fetch the style.json from Martin. - pub async fn get_style(&self) -> Result { - let url = format!("{}/style.json", self.base_url); - let resp = self.client.get(&url).send().await.map_err(|e| { - tracing::error!(error = %e, "Martin connection error"); - AppError::ServiceUnavailable("Martin tile server is unreachable".into()) - })?; - - if !resp.status().is_success() { - return Err(AppError::UpstreamError(format!( - "Martin returned status {}", - resp.status() - ))); - } - - let json: serde_json::Value = resp.json().await.map_err(|e| { - tracing::error!(error = %e, "Failed to parse Martin style.json"); - AppError::UpstreamError("Failed to parse style.json".into()) - })?; - - Ok(json) - } - /// Health probe — simple connectivity check. pub async fn health_check(&self) -> Result { let start = std::time::Instant::now();