summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/charserverhandler.cpp38
-rw-r--r--src/net/ea/charserverhandler.h8
2 files changed, 0 insertions, 46 deletions
diff --git a/src/net/ea/charserverhandler.cpp b/src/net/ea/charserverhandler.cpp
index 15bcb135a..e142fe27d 100644
--- a/src/net/ea/charserverhandler.cpp
+++ b/src/net/ea/charserverhandler.cpp
@@ -61,44 +61,6 @@ void CharServerHandler::setCharSelectDialog(CharSelectDialog *const window)
updateCharSelectDialog();
}
-void CharServerHandler::setCharCreateDialog(CharCreateDialog *const window)
-{
- mCharCreateDialog = window;
-
- if (!mCharCreateDialog)
- return;
-
- StringVect attributes;
- // TRANSLATORS: playe stat
- attributes.push_back(_("Strength:"));
- // TRANSLATORS: playe stat
- attributes.push_back(_("Agility:"));
- // TRANSLATORS: playe stat
- attributes.push_back(_("Vitality:"));
- // TRANSLATORS: playe stat
- attributes.push_back(_("Intelligence:"));
- // TRANSLATORS: playe stat
- attributes.push_back(_("Dexterity:"));
- // TRANSLATORS: playe stat
- attributes.push_back(_("Luck:"));
-
- const Token &token =
- static_cast<LoginHandler*>(Net::getLoginHandler())->getToken();
-
- int minStat = CharDB::getMinStat();
- if (!minStat)
- minStat = 1;
- int maxStat = CharDB::getMaxStat();
- if (!maxStat)
- maxStat = 9;
- int sumStat = CharDB::getSumStat();
- if (!sumStat)
- sumStat = 30;
-
- mCharCreateDialog->setAttributes(attributes, sumStat, minStat, maxStat);
- mCharCreateDialog->setFixedGender(true, token.sex);
-}
-
void CharServerHandler::requestCharacters()
{
connect();
diff --git a/src/net/ea/charserverhandler.h b/src/net/ea/charserverhandler.h
index ce5443753..c9b324c5b 100644
--- a/src/net/ea/charserverhandler.h
+++ b/src/net/ea/charserverhandler.h
@@ -44,14 +44,6 @@ class CharServerHandler notfinal : public Net::CharServerHandler
virtual void setCharSelectDialog(CharSelectDialog *const window)
override final;
- /**
- * Sets the character create dialog. The handler will clean up this
- * dialog when a new character is succesfully created, and will unlock
- * the dialog when a new character failed to be created.
- */
- virtual void setCharCreateDialog(CharCreateDialog *const window)
- override final;
-
virtual void requestCharacters() override final;
virtual unsigned int baseSprite() const override final A_WARN_UNUSED;