From 8c2b1d8bc771b6502bdd8ec38eac3d21776cee7a Mon Sep 17 00:00:00 2001 From: WrinklyNinja Date: Thu, 1 Aug 2013 09:15:02 +0100 Subject: [PATCH] Removed legacy parser test from main.cpp. --- src/gui/main.cpp | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/gui/main.cpp b/src/gui/main.cpp index f9de10e9..431e7b59 100644 --- a/src/gui/main.cpp +++ b/src/gui/main.cpp @@ -284,31 +284,6 @@ bool BossGUI::OnInit() { return false; } - //Legacy parser test. -try { - fs::path v2masterlist("../../BOSS/data/boss-skyrim/masterlist.txt"); - list plugins; - list globalMessages; - Loadv2Masterlist(v2masterlist, plugins, globalMessages); - - YAML::Emitter yout; - yout.SetIndent(2); - yout << YAML::BeginMap - << YAML::Key << "globals" << YAML::Value << globalMessages - << YAML::Key << "plugins" << YAML::Value << plugins - << YAML::EndMap; - - boss::ofstream out(_game.MasterlistPath()); - out << yout.c_str(); - out.close(); - - for (list::iterator it=plugins.begin(), endIt=plugins.end(); it != endIt; ++it) { - it->EvalAllConditions(_game, boss::g_lang_any); - } -} catch (boss::error& e) { - BOOST_LOG_TRIVIAL(error) << "Error using legacy parser: " << e.what(); -} - //Create launcher window. BOOST_LOG_TRIVIAL(debug) << "Opening the main BOSS window."; Launcher * launcher = new Launcher(wxT("BOSS"), _settings, _game, _games);