[Scummvm-git-logs] scummvm master -> dc0a8d9b975afad46c00b64f3c1de8e6f0dc71c4
sev-
noreply at scummvm.org
Sat Oct 26 13:35:56 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
dc0a8d9b97 CRAB: Remove unused function
Commit: dc0a8d9b975afad46c00b64f3c1de8e6f0dc71c4
https://github.com/scummvm/scummvm/commit/dc0a8d9b975afad46c00b64f3c1de8e6f0dc71c4
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2024-10-26T15:35:53+02:00
Commit Message:
CRAB: Remove unused function
Changed paths:
engines/crab/image/Image.cpp
engines/crab/image/Image.h
diff --git a/engines/crab/image/Image.cpp b/engines/crab/image/Image.cpp
index 029a9b9cc2a..3e72b28f8cf 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 35f459e8ac1..7a9697882d0 100644
--- a/engines/crab/image/Image.h
+++ b/engines/crab/image/Image.h
@@ -100,7 +100,6 @@ public:
// Load the image
bool load(const Common::Path &path);
bool load(rapidxml::xml_node<char> *node, const char *name);
- bool load(Graphics::Surface *surface);
bool load(Graphics::ManagedSurface *surface);
More information about the Scummvm-git-logs
mailing list