Commit 9ac57b1
authored
Rollup merge of rust-lang#82807 - notriddle:cleanup-js, r=jyn514
rustdoc: Remove redundant enableSearchInput function
enableSearchInput was called from two places:
- setupSearchLoader
- addSearchOptions, which is itself called from setupSearchLoader only
This commit can safely get rid of the addSearchOptions calls entirely, and since the setupSearchLoader call is immediately preceded by other method calls on search_input, there's no need to check if it's set.1 file changed
+2
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2188 | 2188 | | |
2189 | 2189 | | |
2190 | 2190 | | |
2191 | | - | |
| 2191 | + | |
2192 | 2192 | | |
2193 | 2193 | | |
2194 | 2194 | | |
| |||
2831 | 2831 | | |
2832 | 2832 | | |
2833 | 2833 | | |
2834 | | - | |
2835 | | - | |
2836 | | - | |
2837 | | - | |
2838 | | - | |
2839 | | - | |
2840 | 2834 | | |
2841 | 2835 | | |
2842 | 2836 | | |
2843 | 2837 | | |
2844 | | - | |
2845 | 2838 | | |
2846 | 2839 | | |
2847 | 2840 | | |
| |||
2860 | 2853 | | |
2861 | 2854 | | |
2862 | 2855 | | |
2863 | | - | |
2864 | 2856 | | |
2865 | 2857 | | |
2866 | 2858 | | |
| |||
2952 | 2944 | | |
2953 | 2945 | | |
2954 | 2946 | | |
2955 | | - | |
| 2947 | + | |
2956 | 2948 | | |
2957 | 2949 | | |
2958 | 2950 | | |
| |||
0 commit comments