From: Matthias Braun Date: Fri, 24 Sep 2004 21:19:25 +0000 (+0000) Subject: removed unused function whcih caused compile errors X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=083eeaf363c0b527b398e9257a6474c1054884ce;p=supertux.git removed unused function whcih caused compile errors SVN-Revision: 1969 --- diff --git a/src/level.cpp b/src/level.cpp index 94c98b34c..f7906aba7 100644 --- a/src/level.cpp +++ b/src/level.cpp @@ -158,18 +158,6 @@ Level::get_sector(const std::string& name) return i->second; } -const std::string& -Level::get_sector_name(const Sector* sector) -{ - for(Sectors::iterator i = sectors.begin(); i != sectors.end(); ++i) - { - if(i->second == sector) - return i->first; - } - std::cerr << "Warning: Sector not found on level\n"; - return ""; -} - Sector* Level::get_next_sector(const Sector* sector) { diff --git a/src/level.h b/src/level.h index 3e34d072d..b711e3615 100644 --- a/src/level.h +++ b/src/level.h @@ -64,8 +64,6 @@ public: Sector* get_next_sector(const Sector* sector); Sector* get_previous_sector(const Sector* sector); - const std::string& get_sector_name(const Sector* sector); - int get_total_sectors(); int get_total_badguys();