Skip to content

Commit

Permalink
CRAB: Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
criezy committed Oct 26, 2024
1 parent 6058332 commit 5e628fa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
12 changes: 0 additions & 12 deletions engines/crab/image/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
1 change: 0 additions & 1 deletion engines/crab/image/Image.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ class Image {
// 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);


Expand Down

0 comments on commit 5e628fa

Please sign in to comment.