From: grumbel 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=97795e5a56ddc2936f1f8c002c6abaefff260e19;p=supertux.git Removed some unused code git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6170 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- 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;