From: Moritz Warning Date: Tue, 4 Feb 2020 15:44:03 +0000 (+0100) Subject: remove dead code X-Git-Tag: v1.0.0~24 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=958b3c041cf708ae48bf00aaadd2f1177d315788;p=web%2Ffirmware-selector-openwrt-org.git remove dead code --- diff --git a/index.js b/index.js index 89dc87b..913a2bb 100644 --- a/index.js +++ b/index.js @@ -251,34 +251,6 @@ function updateImages(dllink, model, target, release, commit, prefix, images) { } } -/* - for (var i in images) { - var image = images[i]; - var label_suffix = ""; - - if (images.length >= 2) { - var extra = extractImageExtra(image); - if (extra.length > 0) { - label_suffix = " (" + extra.toUpperCase() + ")"; - } - } - - if (image.includes('-factory')) { - add_link("FACTORY" + label_suffix, image, 'factory-help'); - } else if (image.includes('-sysupgrade')) { - add_link("SYSUPGRADE" + label_suffix, image, 'sysupgrade-help'); - } else if (image.includes('-kernel') || image.includes('-zImage') || image.includes('-uImage')) { - add_link("KERNEL" + label_suffix, image, 'kernel-help'); - } else if (image.includes('-rootfs')) { - add_link("ROOTFS" + label_suffix, image, 'rootfs-help'); - } else if (image.includes('sdcard')) { - add_link("SDCARD" + label_suffix, image, 'sdcard-help'); - } else { - add_link("OTHER" + label_suffix, image, 'other-help'); - } - } -*/ - $('images').style.display = 'block'; } else { $('images').style.display = 'none';