Skip to content

Commit

Permalink
UltimMC: Remove unused code from Ely.by profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Neptune650 committed Mar 13, 2024
1 parent 51fff1f commit e425abf
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions launcher/minecraft/auth/steps/ElybyProfileStep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,6 @@ void ElybyProfileStep::onRequestDone(
#ifndef NDEBUG
qDebug() << data;
#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) {
qWarning() << "Error getting profile:";
qWarning() << " HTTP Status: " << requestor->httpStatus_;
Expand All @@ -78,11 +65,6 @@ void ElybyProfileStep::onRequestDone(
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(
AccountTaskState::STATE_WORKING,
tr("Minecraft Java profile acquisition succeeded.")
Expand Down

0 comments on commit e425abf

Please sign in to comment.