From ece78f7605d31f9774eef52c00a986aa4ac1d401 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 15 Jan 2012 09:34:10 +0900 Subject: [PATCH] Clean out some useless functions. D_Start/EndParticles in the sw renderers will likely never have any content, so no point in calling or even having them. --- include/d_iface.h | 2 -- libs/video/renderer/sw/d_part.c | 14 -------------- libs/video/renderer/sw/sw_rpart.c | 3 --- libs/video/renderer/sw32/d_part.c | 14 -------------- libs/video/renderer/sw32/sw32_rpart.c | 3 --- 5 files changed, 36 deletions(-) diff --git a/include/d_iface.h b/include/d_iface.h index 42e892303..4e5e1c588 100644 --- a/include/d_iface.h +++ b/include/d_iface.h @@ -193,12 +193,10 @@ void D_DrawSprite (void); void D_DrawSurfaces (void); void D_DrawZPoint (void); void D_EnableBackBufferAccess (void); -void D_EndParticles (void); void D_Init (void); void D_Init_Cvars (void); void D_ViewChanged (void); void D_SetupFrame (void); -void D_StartParticles (void); void D_TurnZOn (void); void D_WarpScreen (void); diff --git a/libs/video/renderer/sw/d_part.c b/libs/video/renderer/sw/d_part.c index 8f20f6d56..35d3e3c15 100644 --- a/libs/video/renderer/sw/d_part.c +++ b/libs/video/renderer/sw/d_part.c @@ -35,20 +35,6 @@ static __attribute__ ((used)) const char rcsid[] = #include "r_local.h" -void -D_EndParticles (void) -{ - // not used by software driver -} - - -void -D_StartParticles (void) -{ - // not used by software driver -} - - #ifdef PIC #undef USE_INTEL_ASM //XXX asm pic hack #endif diff --git a/libs/video/renderer/sw/sw_rpart.c b/libs/video/renderer/sw/sw_rpart.c index 35894d81c..cef06b961 100644 --- a/libs/video/renderer/sw/sw_rpart.c +++ b/libs/video/renderer/sw/sw_rpart.c @@ -757,8 +757,6 @@ R_DrawParticles (void) float dvel, frametime, grav, time1, time2, time3; particle_t *p, **particle; - D_StartParticles (); - VectorScale (vright, xscaleshrink, r_pright); VectorScale (vup, yscaleshrink, r_pup); VectorCopy (vpn, r_ppn); @@ -838,7 +836,6 @@ R_DrawParticles (void) } } } - D_EndParticles (); } void diff --git a/libs/video/renderer/sw32/d_part.c b/libs/video/renderer/sw32/d_part.c index 5f6ff0988..3fc8f0bff 100644 --- a/libs/video/renderer/sw32/d_part.c +++ b/libs/video/renderer/sw32/d_part.c @@ -37,20 +37,6 @@ static __attribute__ ((used)) const char rcsid[] = #include "r_local.h" -void -D_EndParticles (void) -{ - // not used by software driver -} - - -void -D_StartParticles (void) -{ - // not used by software driver -} - - void D_DrawParticle (particle_t *pparticle) { diff --git a/libs/video/renderer/sw32/sw32_rpart.c b/libs/video/renderer/sw32/sw32_rpart.c index 8a1d80eac..4ddd54da9 100644 --- a/libs/video/renderer/sw32/sw32_rpart.c +++ b/libs/video/renderer/sw32/sw32_rpart.c @@ -766,8 +766,6 @@ R_DrawParticles (void) int i; particle_t *p, **particle; - D_StartParticles (); - VectorScale (vright, xscaleshrink, r_pright); VectorScale (vup, yscaleshrink, r_pup); VectorCopy (vpn, r_ppn); @@ -848,7 +846,6 @@ R_DrawParticles (void) } } } - D_EndParticles (); } void