@@ -484,30 +484,20 @@ function clearCacheIfNecessary {
484
484
fi
485
485
}
486
486
487
- # Updates the caniuse.json and mdn-spec-links-html.json files , if either
488
- # $DO_UPDATE is true or they are not yet cached.
487
+ # Updates the mdn-spec-links-html.json file , if either $DO_UPDATE is true
488
+ # or it is not yet cached.
489
489
# Arguments: none
490
490
# Output:
491
- # - $HTML_CACHE will contain a usable caniuse .json file
491
+ # - $HTML_CACHE will contain a usable mdn-spec-links-html .json file
492
492
function updateRemoteDataFiles {
493
493
CURL_ARGS=( --retry 2 )
494
494
if ! $VERBOSE ; then
495
495
CURL_ARGS+=( --silent )
496
496
fi
497
497
498
- CURL_CANIUSE_ARGS=( " ${CURL_ARGS[@]} " \
499
- --output " $HTML_CACHE /caniuse.json" -k )
500
498
CURL_MDN_SPEC_LINKS_ARGS=( " ${CURL_ARGS[@]} " \
501
499
--output " $HTML_CACHE /mdn-spec-links-html.json" -k )
502
500
503
-
504
- if [[ $DO_UPDATE == " true" || ! -f " $HTML_CACHE /caniuse.json" ]]; then
505
- rm -f " $HTML_CACHE /caniuse.json"
506
- $QUIET || echo " Downloading caniuse data..."
507
- curl " ${CURL_CANIUSE_ARGS[@]} " \
508
- https://raw.githubusercontent.com/Fyrd/caniuse/master/data.json
509
- fi
510
-
511
501
if [[ $DO_UPDATE == " true" \
512
502
|| ! -f " $HTML_CACHE /mdn-spec-links-html.json" ]]; then
513
503
rm -f " $HTML_CACHE /mdn-spec-links-html.json"
@@ -645,7 +635,6 @@ function runWattsi {
645
635
WATTSI_ARGS+=( --single-page-only )
646
636
fi
647
637
WATTSI_ARGS+=( " $1 " " $HTML_SHA " " $2 " " $BUILD_TYPE " \
648
- " $HTML_CACHE /caniuse.json" \
649
638
" $HTML_CACHE /mdn-spec-links-html.json" )
650
639
if [[ " $DO_HIGHLIGHT " == " true" ]]; then
651
640
WATTSI_ARGS+=( " $HIGHLIGHT_SERVER_URL " )
@@ -670,7 +659,6 @@ function runWattsi {
670
659
--form " source=@$1 " \
671
660
--form " sha=$HTML_SHA " \
672
661
--form " build=$BUILD_TYPE " \
673
- --form " caniuse=@$HTML_CACHE /caniuse.json" \
674
662
--form " mdn=@$HTML_CACHE /mdn-spec-links-html.json" \
675
663
--dump-header " $HTML_TEMP /wattsi-headers.txt" \
676
664
--output " $HTML_TEMP /wattsi-output.zip" )
0 commit comments