Skip to content

Commit

Permalink
Remove rustc search statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
Folyd committed Jun 22, 2024
1 parent a6983ae commit 46afbd0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
4 changes: 0 additions & 4 deletions extension/manage/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ const STATS_MAP = {
color: "#f50707",
description: "Compile error index searches."
},
"rustc": {
color: "#0995cf",
description: "Rustc docs searches."
},
[TYPE_OTHER]: {
color: "#ededed",
description: "Others including any Rust version, Clippy lint (>), book (%), and caniuse/rfc (?) searches."
Expand Down
8 changes: 0 additions & 8 deletions extension/script/add-search-index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@
searchIndex,
},
}, "*");
} else if (location.pathname.startsWith("/nightly/nightly-rustc/") &&
location.hostname === "doc.rust-lang.org") { // rustc pages
window.postMessage({
direction: 'rust-search-extension:rustc',
message: {
searchIndex: getSearchIndex(),
},
}, "*");
} else { // stable/nightly pages
const STD_CRATES = ['std', 'test', 'proc_macro'];

Expand Down
5 changes: 0 additions & 5 deletions extension/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ export const STATS_PATTERNS = [{
pattern: /^`?e\d{2,4}`?$/i,
type: 6,
},
{
name: "rustc",
pattern: /^\/\/.*/i,
type: 7,
},
{
name: "other",
pattern: /^[>%?]|(v?1\.).*/i,
Expand Down

0 comments on commit 46afbd0

Please sign in to comment.