Skip to content

Commit

Permalink
Merge pull request #795 from Daft-Freak/remove-deprecated
Browse files Browse the repository at this point in the history
Remove deprecated compatibility wrapper
  • Loading branch information
Gadgetoid authored Feb 23, 2023
2 parents 52e87e6 + a1013a3 commit 40a84ee
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 35 deletions.
8 changes: 0 additions & 8 deletions 32blit.cmake

This file was deleted.

1 change: 0 additions & 1 deletion 32blit/32blit.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "graphics/font.hpp"
#include "graphics/jpeg.hpp"
#include "graphics/mode7.hpp"
#include "graphics/sprite.hpp"
#include "graphics/surface.hpp"
#include "graphics/tilemap.hpp"
#include "math/constants.hpp"
Expand Down
1 change: 0 additions & 1 deletion 32blit/graphics/sprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <cstring>

#include "surface.hpp"
#include "sprite.hpp"

#include "../engine/file.hpp"

Expand Down
7 changes: 0 additions & 7 deletions 32blit/graphics/sprite.hpp

This file was deleted.

1 change: 0 additions & 1 deletion 32blit/graphics/surface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include <string>

#include "font.hpp"
#include "sprite.hpp"
#include "surface.hpp"

#include "../engine/file.hpp"
Expand Down
15 changes: 0 additions & 15 deletions 32blit/graphics/surface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,6 @@ namespace blit {

void stretch_blit_vspan(Surface *src, Point uv, uint16_t sc, Point p, int16_t dc);

[[deprecated]]
void blit(Surface *src, Rect r, Point p, bool hflip) {
blit(src, r, p, hflip ? SpriteTransform::HORIZONTAL : 0);
}

void custom_blend(Surface *src, Rect r, Point p, std::function<void(uint8_t *psrc, uint8_t *pdest, int16_t c)> f);
void custom_modify(Rect r, std::function<void(uint8_t *p, int16_t c)> f);
void watermark();
Expand All @@ -212,16 +207,6 @@ namespace blit {
Rect sprite_bounds(const Point &p);
Rect sprite_bounds(const Rect &r);

[[deprecated]]
void blit_sprite(const Rect &src, const Point &p, uint8_t t = 0) {
blit(sprites, src, p, t);
}

[[deprecated]]
void stretch_blit_sprite(const Rect &src, const Rect &r, uint8_t t = 0) {
stretch_blit(sprites, src, r, t);
}

void sprite(const Rect &sprite, const Point &position, uint8_t transform = 0);
void sprite(const Point &sprite, const Point &position, uint8_t transform = 0);
void sprite(uint16_t sprite, const Point &position, uint8_t transform = 0);
Expand Down
1 change: 0 additions & 1 deletion 32blit/graphics/tilemap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include "../types/size.hpp"
#include "../types/point.hpp"
#include "../types/mat3.hpp"
#include "../graphics/sprite.hpp"

namespace blit {

Expand Down
2 changes: 1 addition & 1 deletion launcher-shared/metadata.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <cstring>

#include "graphics/sprite.hpp"
#include "graphics/surface.hpp"

#include "metadata.hpp"
#include "executable.hpp"
Expand Down

0 comments on commit 40a84ee

Please sign in to comment.