From: Ingo Ruhnke Date: Sat, 5 Dec 2009 08:26:30 +0000 (+0000) Subject: Removed some unused code X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f4697a1945be630022c23a548409dcb26ea352e3;p=supertux.git Removed some unused code SVN-Revision: 6170 --- diff --git a/src/video/surface.cpp b/src/video/surface.cpp index 6c55ab1a2..0ca60b7ce 100644 --- a/src/video/surface.cpp +++ b/src/video/surface.cpp @@ -35,12 +35,6 @@ Surface::create(const std::string& file, int x, int y, int w, int h) return std::auto_ptr(new Surface(file, x, y, w, h)); } -std::auto_ptr -Surface::create(const Surface& other) -{ - return std::auto_ptr(new Surface(other)); -} - Surface::Surface(const std::string& file) : texture(texture_manager->get(file)), surface_data(), diff --git a/src/video/surface.hpp b/src/video/surface.hpp index 6769e60eb..894bb6e37 100644 --- a/src/video/surface.hpp +++ b/src/video/surface.hpp @@ -34,7 +34,6 @@ class Surface public: static std::auto_ptr create(const std::string& file); static std::auto_ptr create(const std::string& file, int x, int y, int w, int h); - static std::auto_ptr create(const Surface& other); private: Texture* texture;