From 5e628fa7595ff5398c460f5f005401ed1a7a3b33 Mon Sep 17 00:00:00 2001 From: Thierry Crozat Date: Fri, 25 Oct 2024 21:46:13 +0100 Subject: [PATCH] CRAB: Remove unused function --- engines/crab/image/Image.cpp | 12 ------------ engines/crab/image/Image.h | 1 - 2 files changed, 13 deletions(-) diff --git a/engines/crab/image/Image.cpp b/engines/crab/image/Image.cpp index 029a9b9cc2a7..3e72b28f8cf2 100644 --- a/engines/crab/image/Image.cpp +++ b/engines/crab/image/Image.cpp @@ -44,18 +44,6 @@ using namespace pyrodactyl::image; //------------------------------------------------------------------------ // Purpose: Load a texture //------------------------------------------------------------------------ -bool Image::load(Graphics::Surface *surface) { - deleteImage(); - - _texture = new Graphics::ManagedSurface(); - _texture->create(surface->w, surface->h, surface->format); - _texture->copyFrom(*surface); - - _w = surface->w; - _h = surface->h; - - return true; -} bool Image::load(Graphics::ManagedSurface *surface) { deleteImage(); diff --git a/engines/crab/image/Image.h b/engines/crab/image/Image.h index 35f459e8ac19..7a9697882d0f 100644 --- a/engines/crab/image/Image.h +++ b/engines/crab/image/Image.h @@ -100,7 +100,6 @@ class Image { // Load the image bool load(const Common::Path &path); bool load(rapidxml::xml_node *node, const char *name); - bool load(Graphics::Surface *surface); bool load(Graphics::ManagedSurface *surface);