summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/CoinList.cpp')
-rw-r--r--pokemod/CoinList.cpp64
1 files changed, 0 insertions, 64 deletions
diff --git a/pokemod/CoinList.cpp b/pokemod/CoinList.cpp
index 1471b528..73f611cb 100644
--- a/pokemod/CoinList.cpp
+++ b/pokemod/CoinList.cpp
@@ -104,70 +104,6 @@ void PokeGen::PokeMod::CoinList::Validate()
LogValidateOver("CoinList", id, isValid, name);
}
-#ifdef PG_DEBUG_WINDOW
-void PokeGen::PokeMod::CoinList::Validate(const wxListBox &output)
-{
- LogValidateStart("CoinList", id, name);
- if (name == "")
- {
- LogVarEmpty("CoinList", id, "name", name);
- output.Append(ConsoleLogVarEmpty("CoinList", id, "name", name));
- isValid = false;
- }
- if (GetCoinItemCount())
- {
- std::map<unsigned, unsigned> idChecker;
- std::map<String, unsigned> itemChecker;
- std::map<String, unsigned> pokemonChecker;
- for (std::vector<CoinItem>::iterator i = items.begin(); i != items.end(); ++i)
- {
- LogSubmoduleIterate("CoinList", id, "item", i->GetId(), name);
- if (!i->IsValid())
- isValid = false;
- ++idChecker[i->GetId()];
- if (i->GetType() == CIT_ITEM)
- ++itemChecker[i->GetObjectString()];
- else if (i->GetType() == CIT_POKEMON)
- ++pokemonChecker[i->GetObjectString()];
- }
- for (std::map<unsigned, unsigned>::const_iterator i = idChecker.begin(); i != idChecker.end(); ++i)
- {
- if (1 < i->second)
- {
- LogDuplicateId("CoinList", id, "coin item", i->first, name);
- output.Append(ConsoleLogDuplicateId("CoinList", id, "coin item", i->first, name));
- isValid = false;
- }
- }
- for (std::map<String, unsigned>::const_iterator i = itemChecker.begin(); i != itemChecker.end(); ++i)
- {
- if (1 < i->second)
- {
- LogDuplicateSubmodule("CoinList", id, "item", i->first, name);
- output.Append(ConsoleLogDuplicateSubmodule("CoinList", id, "item", i->first, name));
- isValid = false;
- }
- }
- for (std::map<String, unsigned>::const_iterator i = pokemonChecker.begin(); i != pokemonChecker.end(); ++i)
- {
- if (1 < i->second)
- {
- LogDuplicateSubmodule("CoinList", id, "Pokémon", i->first, name);
- output.Append(ConsoleLogDuplicateSubmodule("CoinList", id, "Pokémon", i->first, name));
- isValid = false;
- }
- }
- }
- else
- {
- LogSubmoduleEmpty("CoinList", id, "items", name);
- output.Append(ConsoleLogSubmoduleEmpty("CoinList", id, "items", name));
- isValid = false;
- }
- LogValidateOver("CoinList", id, isValid, name);
-}
-#endif
-
void PokeGen::PokeMod::CoinList::ImportIni(Ini &ini, const unsigned _id)
{
LogImportStart("CoinList");