From c6fbe08a8f82530cb435dd200a1654f7564bbfe1 Mon Sep 17 00:00:00 2001 From: Vegaslon Date: Thu, 20 Aug 2020 08:59:57 -0400 Subject: [PATCH] Test moving to qt image error handling instead of creating own in attempt to fix avatar app slow down. --- .../qml/hifi/avatarapp/AvatarsModel.qml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/interface/resources/qml/hifi/avatarapp/AvatarsModel.qml b/interface/resources/qml/hifi/avatarapp/AvatarsModel.qml index 012cfc3b79..731ee214ec 100644 --- a/interface/resources/qml/hifi/avatarapp/AvatarsModel.qml +++ b/interface/resources/qml/hifi/avatarapp/AvatarsModel.qml @@ -37,17 +37,6 @@ ListModel { return trimmedUrl; } - function imageExists(imageUrl) { - - var http = new XMLHttpRequest(); - - http.open('HEAD', imageUrl, false); - http.send(); - - return http.status !== 404; - - } - function makeThumbnailUrl(avatarUrl) { var marketId = extractMarketId(avatarUrl); if (marketId !== '') { @@ -55,11 +44,6 @@ ListModel { } var avatarThumbnailFileUrl = trimFileExtension(avatarUrl) + ".jpg"; - var thumbnailExist = imageExists(avatarThumbnailFileUrl); - - if (!thumbnailExist) { - return ''; - } return avatarThumbnailFileUrl; }