mirror of
https://github.com/huhu/rust-search-extension
synced 2024-11-13 23:27:13 +00:00
Remove rustc search statistics
This commit is contained in:
parent
a6983ae342
commit
46afbd0e1d
3 changed files with 0 additions and 17 deletions
|
@ -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."
|
||||
|
|
|
@ -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'];
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue