mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-03 16:51:30 +00:00
UltimMC: Remove unused code from Ely.by profile
This commit is contained in:
@@ -41,19 +41,6 @@ void ElybyProfileStep::onRequestDone(
|
|||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
qDebug() << data;
|
qDebug() << data;
|
||||||
#endif
|
#endif
|
||||||
if (error == QNetworkReply::ContentNotFoundError) {
|
|
||||||
// NOTE: Succeed even if we do not have a profile. This is a valid account state.
|
|
||||||
if(m_data->type == AccountType::Mojang) {
|
|
||||||
m_data->minecraftEntitlement.canPlayMinecraft = false;
|
|
||||||
m_data->minecraftEntitlement.ownsMinecraft = false;
|
|
||||||
}
|
|
||||||
m_data->minecraftProfile = MinecraftProfile();
|
|
||||||
emit finished(
|
|
||||||
AccountTaskState::STATE_SUCCEEDED,
|
|
||||||
tr("Account has no Minecraft profile.")
|
|
||||||
);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (error != QNetworkReply::NoError) {
|
if (error != QNetworkReply::NoError) {
|
||||||
qWarning() << "Error getting profile:";
|
qWarning() << "Error getting profile:";
|
||||||
qWarning() << " HTTP Status: " << requestor->httpStatus_;
|
qWarning() << " HTTP Status: " << requestor->httpStatus_;
|
||||||
@@ -78,11 +65,6 @@ void ElybyProfileStep::onRequestDone(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(m_data->type == AccountType::Mojang) {
|
|
||||||
auto validProfile = m_data->minecraftProfile.validity == Katabasis::Validity::Certain;
|
|
||||||
m_data->minecraftEntitlement.canPlayMinecraft = validProfile;
|
|
||||||
m_data->minecraftEntitlement.ownsMinecraft = validProfile;
|
|
||||||
}
|
|
||||||
emit finished(
|
emit finished(
|
||||||
AccountTaskState::STATE_WORKING,
|
AccountTaskState::STATE_WORKING,
|
||||||
tr("Minecraft Java profile acquisition succeeded.")
|
tr("Minecraft Java profile acquisition succeeded.")
|
||||||
|
Reference in New Issue
Block a user