From ec3a08ea0cfd7352ab3dfa1e955059f522a758dd Mon Sep 17 00:00:00 2001 From: tamo Date: Thu, 15 Apr 2021 14:39:33 +0200 Subject: [PATCH] remove another unused legacy file --- meilisearch-http/src/lib.rs | 1 - meilisearch-http/src/routes/mod.rs | 1 - meilisearch-http/src/routes/stop_words.rs | 46 ----------------------- 3 files changed, 48 deletions(-) delete mode 100644 meilisearch-http/src/routes/stop_words.rs diff --git a/meilisearch-http/src/lib.rs b/meilisearch-http/src/lib.rs index 9532273a..7665b569 100644 --- a/meilisearch-http/src/lib.rs +++ b/meilisearch-http/src/lib.rs @@ -35,7 +35,6 @@ macro_rules! create_app { .configure(index::services) .configure(search::services) .configure(settings::services) - .configure(stop_words::services) .configure(synonym::services) .configure(health::services) .configure(stats::services) diff --git a/meilisearch-http/src/routes/mod.rs b/meilisearch-http/src/routes/mod.rs index 9164f2d2..f1c55970 100644 --- a/meilisearch-http/src/routes/mod.rs +++ b/meilisearch-http/src/routes/mod.rs @@ -8,7 +8,6 @@ pub mod key; pub mod search; pub mod settings; pub mod stats; -pub mod stop_words; pub mod synonym; //pub mod dump; diff --git a/meilisearch-http/src/routes/stop_words.rs b/meilisearch-http/src/routes/stop_words.rs deleted file mode 100644 index 8f89b642..00000000 --- a/meilisearch-http/src/routes/stop_words.rs +++ /dev/null @@ -1,46 +0,0 @@ -use actix_web::{delete, get, post}; -use actix_web::{web, HttpResponse}; -use std::collections::BTreeSet; - -use crate::error::ResponseError; -use crate::helpers::Authentication; -use crate::routes::IndexParam; -use crate::Data; - -pub fn services(cfg: &mut web::ServiceConfig) { - cfg.service(get).service(update).service(delete); -} - -#[get( - "/indexes/{index_uid}/settings/stop-words", - wrap = "Authentication::Private" -)] -async fn get( - _data: web::Data, - _path: web::Path, -) -> Result { - todo!() -} - -#[post( - "/indexes/{index_uid}/settings/stop-words", - wrap = "Authentication::Private" -)] -async fn update( - _data: web::Data, - _path: web::Path, - _body: web::Json>, -) -> Result { - todo!() -} - -#[delete( - "/indexes/{index_uid}/settings/stop-words", - wrap = "Authentication::Private" -)] -async fn delete( - _data: web::Data, - _path: web::Path, -) -> Result { - todo!() -}