From f4697a1945be630022c23a548409dcb26ea352e3 Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Sat, 5 Dec 2009 08:26:30 +0000 Subject: [PATCH] Removed some unused code SVN-Revision: 6170 --- 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