Skip to content

Commit e3b2583

Browse files
Remove unused variable
1 parent f4ea46a commit e3b2583

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/librustdoc/html/static/main.js

-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@
160160
// used for special search precedence
161161
var TY_PRIMITIVE = itemTypes.indexOf("primitive");
162162
var TY_KEYWORD = itemTypes.indexOf("keyword");
163-
var TY_MACRO = itemTypes.indexOf("macro");
164163

165164
onEach(document.getElementsByClassName('js-only'), function(e) {
166165
removeClass(e, 'js-only');

src/tools/rustdoc-js/tester.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function main(argv) {
233233

234234
var arraysToLoad = ["itemTypes"];
235235
var variablesToLoad = ["MAX_LEV_DISTANCE", "MAX_RESULTS",
236-
"TY_PRIMITIVE", "TY_KEYWORD", "TY_MACRO",
236+
"TY_PRIMITIVE", "TY_KEYWORD",
237237
"levenshtein_row2"];
238238
// execQuery first parameter is built in getQuery (which takes in the search input).
239239
// execQuery last parameter is built in buildIndex.

0 commit comments

Comments
 (0)