From 97795e5a56ddc2936f1f8c002c6abaefff260e19 Mon Sep 17 00:00:00 2001 From: grumbel Date: Sat, 5 Dec 2009 08:26:30 +0000 Subject: [PATCH] Removed some unused code git-svn-id: http://supertux.lethargik.org/svn/supertux/trunk/supertux@6170 837edb03-e0f3-0310-88ca-d4d4e8b29345 --- src/video/surface.cpp | 6 ------ src/video/surface.hpp | 1 - 2 files changed, 7 deletions(-) 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; -- 2.11.0