From 0140fcd027eda4675bec5920c1f84481318b39aa Mon Sep 17 00:00:00 2001 From: grumbel Date: Mon, 14 Dec 2009 04:50:24 +0000 Subject: [PATCH] Removed some unused code git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6213 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- src/worldmap/level.cpp | 15 +-------------- src/worldmap/level.hpp | 3 --- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/worldmap/level.cpp b/src/worldmap/level.cpp index 3b502a7e9..1f3ec1a7e 100644 --- a/src/worldmap/level.cpp +++ b/src/worldmap/level.cpp @@ -76,19 +76,6 @@ LevelTile::update(float ) { } -const Surface* -LevelTile::get_picture() -{ - if (picture_cached) return picture; - picture_cached = true; - std::string fname = FileSystem::strip_extension(basedir + name)+".jpg"; - if (!PHYSFS_exists(fname.c_str())) { - return 0; - } - picture = new Surface(fname); - return picture; -} - -} +} // namespace worldmap /* EOF */ diff --git a/src/worldmap/level.hpp b/src/worldmap/level.hpp index b4961b424..9120badca 100644 --- a/src/worldmap/level.hpp +++ b/src/worldmap/level.hpp @@ -39,9 +39,6 @@ public: virtual void draw(DrawingContext& context); virtual void update(float elapsed_time); - /** return Surface of level picture or 0 if no picture is available */ - const Surface* get_picture(); - public: Vector pos; std::string title; -- 2.11.0