Removed unused code.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5482 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-06-07 21:50:14 +00:00
parent ca66768c9e
commit dc301c1726
3 changed files with 1 additions and 17 deletions

View File

@ -53,20 +53,7 @@ GrandPrixData::GrandPrixData(const std::string filename) throw(std::logic_error)
throw std::logic_error("File contents are incomplete or corrupt");
}
m_name = _(temp_name.c_str());
foundName = true;
/*
std::string temp_desc;
const int readDesc = root->get( "description", &temp_desc );
if (readDesc == 1 && temp_desc.size() > 0)
{
m_description = _(temp_desc.c_str());
}
*/
// This used to be there, but I'm leaving it out since it seems it was unused
// lisp->get("item", m_item_style);
foundName = true;
}
else
{

View File

@ -39,7 +39,6 @@ class GrandPrixData
std::string m_id; //!< Internal name of the grand prix, not translated
std::string m_filename; //!< Original filename, only for error handling needed
std::string m_item_style; //!< item style which overwrites the track default
/**
* The ident of the tracks in this grand prix in their right order, ident
@ -68,7 +67,6 @@ public:
/** @return the internale name identifier of the Grand Prix (not translated) */
const std::string& getId () const { return m_id; }
const std::string& getItemStyle () const { return m_item_style; }
const std::string& getFilename () const { return m_filename; }
const std::string& getTrack(size_t track_index) const { assert(track_index >= 0); assert(track_index < m_tracks.size());
return m_tracks[track_index]; }

View File

@ -279,7 +279,6 @@ public:
const GrandPrixData *getGrandPrix() const { return &m_grand_prix; }
unsigned int getFinishedKarts() const { return m_num_finished_karts; }
unsigned int getFinishedPlayers() const { return m_num_finished_players; }
const std::string& getItemStyle() const { return m_grand_prix.getItemStyle(); }
void computeGPRanks();
int getKartGPRank(const int kart_id)