Skip to content

Commit ef96d57

Browse files
committed
Remove configuration which became unused in 8abb4bb
1 parent b00d666 commit ef96d57

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

Diff for: src/librustdoc/config.rs

-5
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,6 @@ crate struct RenderOptions {
257257
/// If present, playground URL to use in the "Run" button added to code samples generated from
258258
/// standalone Markdown files. If not present, `playground_url` is used.
259259
crate markdown_playground_url: Option<String>,
260-
/// If false, the `select` element to have search filtering by crates on rendered docs
261-
/// won't be generated.
262-
crate generate_search_filter: bool,
263260
/// Document items that have lower than `pub` visibility.
264261
crate document_private: bool,
265262
/// Document items that have `doc(hidden)`.
@@ -638,7 +635,6 @@ impl Options {
638635
let crate_version = matches.opt_str("crate-version");
639636
let enable_index_page = matches.opt_present("enable-index-page") || index_page.is_some();
640637
let static_root_path = matches.opt_str("static-root-path");
641-
let generate_search_filter = !matches.opt_present("disable-per-crate-search");
642638
let test_run_directory = matches.opt_str("test-run-directory").map(PathBuf::from);
643639
let persist_doctests = matches.opt_str("persist-doctests").map(PathBuf::from);
644640
let test_builder = matches.opt_str("test-builder").map(PathBuf::from);
@@ -724,7 +720,6 @@ impl Options {
724720
markdown_no_toc,
725721
markdown_css,
726722
markdown_playground_url,
727-
generate_search_filter,
728723
document_private,
729724
document_hidden,
730725
generate_redirect_map,

Diff for: src/librustdoc/html/layout.rs

-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ crate struct Layout {
1919
/// The given user css file which allow to customize the generated
2020
/// documentation theme.
2121
crate css_file_extension: Option<PathBuf>,
22-
/// If false, the `select` element to have search filtering by crates on rendered docs
23-
/// won't be generated.
24-
crate generate_search_filter: bool,
2522
/// If true, then scrape-examples.js will be included in the output HTML file
2623
crate scrape_examples_extension: bool,
2724
}

Diff for: src/librustdoc/html/render/context.rs

-2
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
387387
extension_css,
388388
resource_suffix,
389389
static_root_path,
390-
generate_search_filter,
391390
unstable_features,
392391
generate_redirect_map,
393392
show_type_layout,
@@ -417,7 +416,6 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> {
417416
default_settings,
418417
krate: krate.name(tcx).to_string(),
419418
css_file_extension: extension_css,
420-
generate_search_filter,
421419
scrape_examples_extension: !call_locations.is_empty(),
422420
};
423421
let mut issue_tracker_base_url = None;

0 commit comments

Comments
 (0)