Skip to content

Commit

Permalink
refactor: remove deprecated code (#3671)
Browse files Browse the repository at this point in the history
- Removed deprecated `webserver` flag and related warning in `serve.rs`.
- Removed deprecated `WEB` corpus constant in `index/mod.rs`.
  • Loading branch information
wsxiaoys authored Jan 10, 2025
1 parent 0fbb3d5 commit e93e28f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
6 changes: 0 additions & 6 deletions crates/tabby-common/src/index/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,6 @@ pub const FIELD_ATTRIBUTES: &str = "attributes";
pub mod corpus {
pub const CODE: &str = "code";
pub const STRUCTURED_DOC: &str = "structured_doc";

#[deprecated(
since = "0.20.0",
note = "The web corpus is deprecated and will be removed during the version upgrade."
)]
pub const WEB: &str = "web";
}

impl IndexSchema {
Expand Down
11 changes: 0 additions & 11 deletions crates/tabby/src/serve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@ pub struct ServeArgs {
#[clap(long, default_value_t = 1)]
parallelism: u8,

#[cfg(feature = "ee")]
#[clap(hide = true, long, default_value_t = false)]
#[deprecated(since = "0.11.0", note = "webserver is enabled by default")]
webserver: bool,

#[cfg(feature = "ee")]
#[clap(hide = true, long, default_value_t = false)]
no_webserver: bool,
Expand All @@ -118,12 +113,6 @@ pub async fn main(config: &Config, args: &ServeArgs) {

let tx = try_run_spinner();

#[cfg(feature = "ee")]
#[allow(deprecated)]
if args.webserver {
warn!("'--webserver' is enabled by default since 0.11, and will be removed in the next major release. Please remove this flag from your command.");
}

#[allow(unused_assignments)]
let mut webserver = None;

Expand Down

0 comments on commit e93e28f

Please sign in to comment.