Skip to content

Commit 431e2bb

Browse files
author
b1nd
committed
Removed redundant code, improve performance
closes #10535
1 parent dd8b011 commit 431e2bb

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/librustdoc/html/static/main.js

+1-9
Original file line numberDiff line numberDiff line change
@@ -171,14 +171,6 @@
171171
return [];
172172
}
173173

174-
results.forEach(function(item) {
175-
for (var i = 0; i < split.length; i++) {
176-
if (item[3].indexOf(split[i]) === -1) {
177-
item = null;
178-
break;
179-
}
180-
}
181-
});
182174
// sort by exact match
183175
results.sort(function search_complete_sort0(aaa, bbb) {
184176
if (searchWords[aaa[0]] === valLower && searchWords[bbb[0]] !== valLower) {
@@ -551,4 +543,4 @@
551543
}
552544

553545
initSearch(searchIndex);
554-
}());
546+
}());

0 commit comments

Comments
 (0)