From 4c216753ba575492aa21f14dd5eed1aaaa6dc127 Mon Sep 17 00:00:00 2001 From: arthomnix Date: Mon, 6 Feb 2023 16:29:24 +0000 Subject: [PATCH] NOISSUE Remove some unused code --- launcher/net/Download.cpp | 7 ------- launcher/net/Download.h | 3 +-- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/launcher/net/Download.cpp b/launcher/net/Download.cpp index f92d4de7..541be99f 100644 --- a/launcher/net/Download.cpp +++ b/launcher/net/Download.cpp @@ -122,13 +122,6 @@ void Download::downloadError(QNetworkReply::NetworkError error) qCritical() << "Aborted " << m_url.toString(); m_status = Job_Aborted; } - else if(error == QNetworkReply::ContentNotFoundError && (m_options & Option::AllowNotFound)) - { - // The Modrinth API returns a 404 when a hash was not found when performing reverse hash lookup, we don't want to treat this as a failure - qDebug() << "Received 404 from " << m_url.toString() << ", continuing..."; - m_status = Job_Finished; - return; - } else { if(m_options & Option::AcceptLocalFiles) diff --git a/launcher/net/Download.h b/launcher/net/Download.h index 343ce7cd..4478dc30 100644 --- a/launcher/net/Download.h +++ b/launcher/net/Download.h @@ -32,8 +32,7 @@ public: /* types */ enum class Option { NoOptions = 0, - AcceptLocalFiles = 1, - AllowNotFound = 2 + AcceptLocalFiles = 1 }; Q_DECLARE_FLAGS(Options, Option)