1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01:00

Remove unused function Graphics::drawentcolours()

This function was marked as unused by cppcheck.
This commit is contained in:
Misa 2021-01-02 00:19:51 -08:00 committed by Ethan Lee
parent 6261fa51e9
commit 9b3bf69491
2 changed files with 0 additions and 12 deletions

View file

@ -679,17 +679,6 @@ void Graphics::drawtile3( int x, int y, int t, int off, int height_subtract /*=
BlitSurfaceStandard(tiles3[t], &src_rect, backBuffer, &rect); BlitSurfaceStandard(tiles3[t], &src_rect, backBuffer, &rect);
} }
void Graphics::drawentcolours( int x, int y, int t)
{
if (!INBOUNDS_VEC(t, entcolours))
{
WHINE_ONCE("drawentcolours() out-of-bounds!")
return;
}
SDL_Rect rect = { Sint16(x), Sint16(y), tiles_rect.w, tiles_rect.h };
BlitSurfaceStandard(entcolours[t], NULL, backBuffer, &rect);
}
void Graphics::drawtowertile( int x, int y, int t ) void Graphics::drawtowertile( int x, int y, int t )
{ {
if (!INBOUNDS_VEC(t, tiles2)) if (!INBOUNDS_VEC(t, tiles2))

View file

@ -163,7 +163,6 @@ public:
void drawbackground(int t); void drawbackground(int t);
void updatebackground(int t); void updatebackground(int t);
void drawtile3( int x, int y, int t, int off, int height_subtract = 0 ); void drawtile3( int x, int y, int t, int off, int height_subtract = 0 );
void drawentcolours( int x, int y, int t);
void drawtile2( int x, int y, int t ); void drawtile2( int x, int y, int t );
void drawtile( int x, int y, int t ); void drawtile( int x, int y, int t );
void drawtowertile( int x, int y, int t ); void drawtowertile( int x, int y, int t );