From 462bd8d292484a1d4de71edb555d4f85ccf1eab9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 20 Oct 2019 10:44:51 +0200 Subject: [PATCH] - cleaned out some commented out code. --- source/duke3d/src/screens.cpp | 21 --------------------- source/rr/src/screens.cpp | 18 ------------------ 2 files changed, 39 deletions(-) diff --git a/source/duke3d/src/screens.cpp b/source/duke3d/src/screens.cpp index 41bdef385..4313f5362 100644 --- a/source/duke3d/src/screens.cpp +++ b/source/duke3d/src/screens.cpp @@ -679,10 +679,6 @@ static void G_PrintCoords(int32_t snum) #endif } -#if !defined DEBUG_ALLOCACHE_AS_MALLOC -extern int32_t cacnum; -extern cactype cac []; -#endif static void G_ShowCacheLocks(void) { @@ -691,23 +687,6 @@ static void G_ShowCacheLocks(void) int k = 0; -/* -#if !defined DEBUG_ALLOCACHE_AS_MALLOC - for (int i=cacnum-1; i>=0; i--) - { - if ((*cac[i].lock) != 200 && (*cac[i].lock) != 1) - { - if (k >= ydim-12) - break; - - Bsprintf(tempbuf, "Locked- %d: Leng:%d, Lock:%d", i, cac[i].leng, *cac[i].lock); - printext256(0L, k, COLOR_WHITE, -1, tempbuf, 1); - k += 6; - } - } -#endif -*/ - if (k < ydim-12) k += 6; diff --git a/source/rr/src/screens.cpp b/source/rr/src/screens.cpp index 3aba3cd70..cdd08ba1e 100644 --- a/source/rr/src/screens.cpp +++ b/source/rr/src/screens.cpp @@ -674,11 +674,6 @@ static void G_PrintCoords(int32_t snum) #endif } -#if !defined DEBUG_ALLOCACHE_AS_MALLOC -extern int32_t cacnum; -extern cactype cac []; -#endif - static void G_ShowCacheLocks(void) { int16_t i, k; @@ -687,20 +682,7 @@ static void G_ShowCacheLocks(void) return; k = 0; -/* -#if !defined DEBUG_ALLOCACHE_AS_MALLOC - for (i=cacnum-1; i>=0; i--) - if ((*cac[i].lock) >= 200) - { - if (k >= ydim-12) - break; - Bsprintf(tempbuf, "Locked- %d: Leng:%d, Lock:%d", i, cac[i].leng, *cac[i].lock); - printext256(0L, k, COLOR_WHITE, -1, tempbuf, 1); - k += 6; - } -#endif -*/ if (k < ydim-12) k += 6;