Remove dead variables
This commit is contained in:
parent
1051df45e3
commit
8c6d43e6be
2 changed files with 3 additions and 9 deletions
|
@ -899,7 +899,6 @@ Z_FreeTags
|
|||
================
|
||||
*/
|
||||
void Z_FreeTags( int tag ) {
|
||||
int count;
|
||||
memzone_t *zone;
|
||||
|
||||
if ( tag == TAG_SMALL ) {
|
||||
|
@ -908,13 +907,11 @@ void Z_FreeTags( int tag ) {
|
|||
else {
|
||||
zone = mainzone;
|
||||
}
|
||||
count = 0;
|
||||
// use the rover as our pointer, because
|
||||
// Z_Free automatically adjusts it
|
||||
zone->rover = zone->blocklist.next;
|
||||
do {
|
||||
if ( zone->rover->tag == tag ) {
|
||||
count++;
|
||||
Z_Free( (void *)(zone->rover + 1) );
|
||||
continue;
|
||||
}
|
||||
|
@ -1268,7 +1265,7 @@ Com_Meminfo_f
|
|||
void Com_Meminfo_f( void ) {
|
||||
memblock_t *block;
|
||||
int zoneBytes, zoneBlocks;
|
||||
int smallZoneBytes, smallZoneBlocks;
|
||||
int smallZoneBytes;
|
||||
int botlibBytes, rendererBytes;
|
||||
int unused;
|
||||
|
||||
|
@ -1306,11 +1303,9 @@ void Com_Meminfo_f( void ) {
|
|||
}
|
||||
|
||||
smallZoneBytes = 0;
|
||||
smallZoneBlocks = 0;
|
||||
for (block = smallzone->blocklist.next ; ; block = block->next) {
|
||||
if ( block->tag ) {
|
||||
smallZoneBytes += block->size;
|
||||
smallZoneBlocks++;
|
||||
}
|
||||
|
||||
if (block->next == &smallzone->blocklist) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue