From dc301c17268239b2e7c80c56db5108a5b6700280 Mon Sep 17 00:00:00 2001 From: hikerstk Date: Mon, 7 Jun 2010 21:50:14 +0000 Subject: [PATCH] Removed unused code. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5482 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- src/race/grand_prix_data.cpp | 15 +-------------- src/race/grand_prix_data.hpp | 2 -- src/race/race_manager.hpp | 1 - 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/race/grand_prix_data.cpp b/src/race/grand_prix_data.cpp index 05521f15b..967da681d 100644 --- a/src/race/grand_prix_data.cpp +++ b/src/race/grand_prix_data.cpp @@ -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 { diff --git a/src/race/grand_prix_data.hpp b/src/race/grand_prix_data.hpp index 774338174..e4e897c9d 100644 --- a/src/race/grand_prix_data.hpp +++ b/src/race/grand_prix_data.hpp @@ -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]; } diff --git a/src/race/race_manager.hpp b/src/race/race_manager.hpp index 48b84977a..24e80d00a 100644 --- a/src/race/race_manager.hpp +++ b/src/race/race_manager.hpp @@ -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)