summaryrefslogtreecommitdiffstats
path: root/pokemod/Pokemod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/Pokemod.cpp')
-rw-r--r--pokemod/Pokemod.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/pokemod/Pokemod.cpp b/pokemod/Pokemod.cpp
index 0f52af1f..a0e86ced 100644
--- a/pokemod/Pokemod.cpp
+++ b/pokemod/Pokemod.cpp
@@ -65,8 +65,6 @@ Pokemod::Pokemod() :
m_flySkin(192, 128),
m_fishSkin(192, 128),
m_surfFishSkin(192, 128),
- m_superPCUname(""),
- m_superPCPasswd(""),
m_typeChart(0, 0),
m_rules(new Rules(this))
{
@@ -107,10 +105,6 @@ void Pokemod::validate()
if (mapById(m_startMap)->warpIndex(m_startWarp) == INT_MAX)
emit(error("Invalid starting warp"));
}
- if (m_superPCUname.isEmpty())
- emit(warning("Super PC username not defined"));
- if (m_superPCPasswd.isEmpty())
- emit(warning("Super PC password not defined"));
if ((m_typeChart.width() != typeCount()) || (m_typeChart.height() != typeCount()))
emit(error("Type chart is invalid"));
m_rules->validate();
@@ -395,8 +389,6 @@ void Pokemod::load(const QDomElement& xml, const int)
LOAD(QPixmap, flySkin);
LOAD(QPixmap, fishSkin);
LOAD(QPixmap, surfFishSkin);
- LOAD(QString, superPCUname);
- LOAD(QString, superPCPasswd);
LOAD(Rules, rules);
LOAD_SUB(newAbility, Ability);
LOAD_SUB(newAuthor, Author);
@@ -433,8 +425,6 @@ QDomElement Pokemod::save() const
SAVE(QPixmap, flySkin);
SAVE(QPixmap, fishSkin);
SAVE(QPixmap, surfFishSkin);
- SAVE(QString, superPCUname);
- SAVE(QString, superPCPasswd);
SAVE_Rules(rules);
SAVE_MATRIX(Fraction, typeChart);
SAVE_SUB(Ability, abilities);
@@ -569,16 +559,6 @@ void Pokemod::setSurfFishSkin(const QPixmap& surfFishSkin)
emit(changed());
}
-void Pokemod::setSuperPCUname(const QString& superPCUname)
-{
- CHECK(superPCUname);
-}
-
-void Pokemod::setSuperPCPasswd(const QString& superPCPasswd)
-{
- CHECK(superPCPasswd);
-}
-
void Pokemod::setTypeChart(const int attack, const int defense, const Fraction& multiplier)
{
CHECK_ARRAY(typeChart(attack, defense), multiplier);
@@ -649,16 +629,6 @@ QPixmap Pokemod::surfFishSkin() const
return m_surfFishSkin;
}
-QString Pokemod::superPCUname() const
-{
- return m_superPCUname;
-}
-
-QString Pokemod::superPCPasswd() const
-{
- return m_superPCPasswd;
-}
-
const Matrix<Fraction>* Pokemod::typeChart() const
{
return &m_typeChart;
@@ -2166,8 +2136,6 @@ Pokemod& Pokemod::operator=(const Pokemod& rhs)
COPY(description);
COPY(startMap);
COPY(startWarp);
- COPY(superPCUname);
- COPY(superPCPasswd);
COPY(typeChart);
COPY_Rules(rules);
COPY_SUB(Ability, abilities);