Post-merge tidying up

This commit is contained in:
Marianne Gagnon 2014-03-06 19:19:39 -05:00
parent 780201b1ad
commit 10caa7a2ec
4 changed files with 4 additions and 13 deletions

View File

@ -32,9 +32,6 @@
#include "tracks/track_manager.hpp"
ChallengeData::ChallengeData(const std::string& filename)
#ifndef WIN32
throw(std::runtime_error)
#endif
{
m_filename = filename;
m_mode = CM_SINGLE_RACE;

View File

@ -111,11 +111,7 @@ private:
irr::core::stringw m_challenge_description;
public:
#ifdef WIN32
ChallengeData(const std::string& filename);
#else
ChallengeData(const std::string& filename) throw(std::runtime_error);
#endif
virtual ~ChallengeData() {}

View File

@ -31,16 +31,15 @@
#include <iostream>
#include <stdexcept>
GrandPrixData::GrandPrixData(const std::string filename) throw(std::logic_error)
GrandPrixData::GrandPrixData(const std::string filename)
{
load_from_file(file_manager->getAsset(FileManager::GRANDPRIX, filename),
filename);
}
// ----------------------------------------------------------------------------
GrandPrixData::GrandPrixData(const std::string dir, const std::string filename)
throw(std::logic_error)
{
assert(dir[dir.size()] == '/');
assert(dir[dir.size() - 1] == '/');
load_from_file(dir + filename, filename);
}
// ----------------------------------------------------------------------------

View File

@ -74,9 +74,8 @@ public:
#pragma warning(disable:4290)
#endif
GrandPrixData () {}; // empty for initialising
GrandPrixData (const std::string filename) throw(std::logic_error);
GrandPrixData (const std::string dir, const std::string filename)
throw(std::logic_error);
GrandPrixData(const std::string filename);
GrandPrixData (const std::string dir, const std::string filename);
bool checkConsistency(bool chatty=true) const;