mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2025-01-28 18:32:48 +00:00
NOISSUE Remove some unused code
This commit is contained in:
parent
413397c3c1
commit
4c216753ba
@ -122,13 +122,6 @@ void Download::downloadError(QNetworkReply::NetworkError error)
|
|||||||
qCritical() << "Aborted " << m_url.toString();
|
qCritical() << "Aborted " << m_url.toString();
|
||||||
m_status = Job_Aborted;
|
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
|
else
|
||||||
{
|
{
|
||||||
if(m_options & Option::AcceptLocalFiles)
|
if(m_options & Option::AcceptLocalFiles)
|
||||||
|
@ -32,8 +32,7 @@ public: /* types */
|
|||||||
enum class Option
|
enum class Option
|
||||||
{
|
{
|
||||||
NoOptions = 0,
|
NoOptions = 0,
|
||||||
AcceptLocalFiles = 1,
|
AcceptLocalFiles = 1
|
||||||
AllowNotFound = 2
|
|
||||||
};
|
};
|
||||||
Q_DECLARE_FLAGS(Options, Option)
|
Q_DECLARE_FLAGS(Options, Option)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user