Removed some unused code
authorIngo Ruhnke <grumbel@gmx.de>
Mon, 14 Dec 2009 04:50:24 +0000 (04:50 +0000)
committerIngo Ruhnke <grumbel@gmx.de>
Mon, 14 Dec 2009 04:50:24 +0000 (04:50 +0000)
SVN-Revision: 6213

src/worldmap/level.cpp
src/worldmap/level.hpp

index 3b502a7..1f3ec1a 100644 (file)
@@ -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 */
index b4961b4..9120bad 100644 (file)
@@ -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;