Remove now unused getFeaturedVersion function

This commit is contained in:
Marco Castelluccio 2018-11-30 00:14:32 +01:00
Родитель 8456cb011b
Коммит 27a7467985
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -85,12 +85,6 @@ function fetchWithRetry(url, trials=0) {
});
}
function getFeaturedVersion() {
return fetchWithRetry('https://crash-stats.mozilla.com/api/ProductVersions/?product=Firefox&build_type=' + getOption('channel') + '&is_featured=true')
.then(response => response.json())
.then(data => data['hits'][0]['version']);
}
async function getVersion(channel) {
let response = await fetchWithRetry('https://product-details.mozilla.org/1.0/firefox_versions.json');
let data = await response.json();