From 3160cbb97d5944feb3c18dae6ac4142c74b6aa89 Mon Sep 17 00:00:00 2001 From: Eduardo Quezada Date: Fri, 17 May 2024 11:23:31 -0400 Subject: [PATCH] Removed usages of DEBUG define --- Makefile | 5 ----- gflib/sprite.c | 7 ------- 2 files changed, 12 deletions(-) diff --git a/Makefile b/Makefile index d93d7b00a5..34df6667ba 100644 --- a/Makefile +++ b/Makefile @@ -370,11 +370,6 @@ ifeq ($(DINFO),1) override CFLAGS += -g endif -ifeq ($(DDEBUG),1) -override ASFLAGS += --defsym DEBUG=1 -override CPPFLAGS += -D DEBUG=1 -endif - # The dep rules have to be explicit or else missing files won't be reported. # As a side effect, they're evaluated immediately instead of when the rule is invoked. # It doesn't look like $(shell) can be deferred so there might not be a better way. diff --git a/gflib/sprite.c b/gflib/sprite.c index c64392a80d..08030ab6f7 100644 --- a/gflib/sprite.c +++ b/gflib/sprite.c @@ -1501,10 +1501,6 @@ void FreeSpriteTilesByTag(u16 tag) FREE_SPRITE_TILE(i); sSpriteTileRangeTags[index] = TAG_NONE; - #if DEBUG - // If debugging, visibly clear the freed tiles - CpuSmartFill16(0, (u8 *)OBJ_VRAM0 + TILE_SIZE_4BPP * start, count * TILE_SIZE_4BPP); - #endif } } @@ -1635,9 +1631,6 @@ void FreeSpritePaletteByTag(u16 tag) if (index != 0xFF) { sSpritePaletteTags[index] = TAG_NONE; - #if DEBUG - FillPalette(0, index * 16 + 0x100, 32); - #endif } }