mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-12-14 14:11:15 +00:00
Remove dead variables
This commit is contained in:
parent
1051df45e3
commit
8c6d43e6be
2 changed files with 3 additions and 9 deletions
|
@ -826,7 +826,7 @@ CM_AddFacetBevels
|
||||||
void CM_AddFacetBevels( facet_t *facet ) {
|
void CM_AddFacetBevels( facet_t *facet ) {
|
||||||
|
|
||||||
int i, j, k, l;
|
int i, j, k, l;
|
||||||
int axis, dir, order, flipped;
|
int axis, dir, flipped;
|
||||||
float plane[4], d, newplane[4];
|
float plane[4], d, newplane[4];
|
||||||
winding_t *w, *w2;
|
winding_t *w, *w2;
|
||||||
vec3_t mins, maxs, vec, vec2;
|
vec3_t mins, maxs, vec, vec2;
|
||||||
|
@ -852,10 +852,9 @@ void CM_AddFacetBevels( facet_t *facet ) {
|
||||||
WindingBounds(w, mins, maxs);
|
WindingBounds(w, mins, maxs);
|
||||||
|
|
||||||
// add the axial planes
|
// add the axial planes
|
||||||
order = 0;
|
|
||||||
for ( axis = 0 ; axis < 3 ; axis++ )
|
for ( axis = 0 ; axis < 3 ; axis++ )
|
||||||
{
|
{
|
||||||
for ( dir = -1 ; dir <= 1 ; dir += 2, order++ )
|
for ( dir = -1 ; dir <= 1 ; dir += 2 )
|
||||||
{
|
{
|
||||||
VectorClear(plane);
|
VectorClear(plane);
|
||||||
plane[axis] = dir;
|
plane[axis] = dir;
|
||||||
|
|
|
@ -899,7 +899,6 @@ Z_FreeTags
|
||||||
================
|
================
|
||||||
*/
|
*/
|
||||||
void Z_FreeTags( int tag ) {
|
void Z_FreeTags( int tag ) {
|
||||||
int count;
|
|
||||||
memzone_t *zone;
|
memzone_t *zone;
|
||||||
|
|
||||||
if ( tag == TAG_SMALL ) {
|
if ( tag == TAG_SMALL ) {
|
||||||
|
@ -908,13 +907,11 @@ void Z_FreeTags( int tag ) {
|
||||||
else {
|
else {
|
||||||
zone = mainzone;
|
zone = mainzone;
|
||||||
}
|
}
|
||||||
count = 0;
|
|
||||||
// use the rover as our pointer, because
|
// use the rover as our pointer, because
|
||||||
// Z_Free automatically adjusts it
|
// Z_Free automatically adjusts it
|
||||||
zone->rover = zone->blocklist.next;
|
zone->rover = zone->blocklist.next;
|
||||||
do {
|
do {
|
||||||
if ( zone->rover->tag == tag ) {
|
if ( zone->rover->tag == tag ) {
|
||||||
count++;
|
|
||||||
Z_Free( (void *)(zone->rover + 1) );
|
Z_Free( (void *)(zone->rover + 1) );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -1268,7 +1265,7 @@ Com_Meminfo_f
|
||||||
void Com_Meminfo_f( void ) {
|
void Com_Meminfo_f( void ) {
|
||||||
memblock_t *block;
|
memblock_t *block;
|
||||||
int zoneBytes, zoneBlocks;
|
int zoneBytes, zoneBlocks;
|
||||||
int smallZoneBytes, smallZoneBlocks;
|
int smallZoneBytes;
|
||||||
int botlibBytes, rendererBytes;
|
int botlibBytes, rendererBytes;
|
||||||
int unused;
|
int unused;
|
||||||
|
|
||||||
|
@ -1306,11 +1303,9 @@ void Com_Meminfo_f( void ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
smallZoneBytes = 0;
|
smallZoneBytes = 0;
|
||||||
smallZoneBlocks = 0;
|
|
||||||
for (block = smallzone->blocklist.next ; ; block = block->next) {
|
for (block = smallzone->blocklist.next ; ; block = block->next) {
|
||||||
if ( block->tag ) {
|
if ( block->tag ) {
|
||||||
smallZoneBytes += block->size;
|
smallZoneBytes += block->size;
|
||||||
smallZoneBlocks++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (block->next == &smallzone->blocklist) {
|
if (block->next == &smallzone->blocklist) {
|
||||||
|
|
Loading…
Reference in a new issue