From 5cdb58431a90d16f9451432538529c5b6109dcd9 Mon Sep 17 00:00:00 2001 From: lewa_j Date: Tue, 13 Jan 2026 01:28:10 +0300 Subject: [PATCH] engine: ref: Remove unused declarations, fix comment after rename --- engine/client/cl_tent.c | 2 +- engine/common/dedicated.c | 5 ----- ref/gl/gl_local.h | 10 +--------- ref/soft/r_local.h | 1 - 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/engine/client/cl_tent.c b/engine/client/cl_tent.c index b0624423..c5f1d864 100644 --- a/engine/client/cl_tent.c +++ b/engine/client/cl_tent.c @@ -3084,7 +3084,7 @@ EFRAGS MANAGEMENT */ /* ======================= -R_ClearStaticEntities +CL_ClearStaticEntities e.g. by demo request ======================= diff --git a/engine/common/dedicated.c b/engine/common/dedicated.c index 4f982620..d9d4e40c 100644 --- a/engine/common/dedicated.c +++ b/engine/common/dedicated.c @@ -108,11 +108,6 @@ void CL_Disconnect( void ) } -void R_ClearStaticEntities( void ) -{ - -} - void Host_Credits( void ) { diff --git a/ref/gl/gl_local.h b/ref/gl/gl_local.h index 95b4df8e..37ed0781 100644 --- a/ref/gl/gl_local.h +++ b/ref/gl/gl_local.h @@ -348,12 +348,6 @@ void R_ClearDecals( void ); void R_Set2DMode( qboolean enable ); void R_UploadStretchRaw( int texture, int cols, int rows, int width, int height, const byte *data ); -// -// gl_drawhulls.c -// -void R_DrawWorldHull( void ); -void R_DrawModelHull( void ); - // // gl_image.c // @@ -426,7 +420,7 @@ void Matrix4x4_CreateModelview( matrix4x4 out ); // // gl_rmisc.c // -void R_ClearStaticEntities( void ); +void R_NewMap( void ); // // gl_rsurf.c @@ -515,7 +509,6 @@ void GL_OnContextCreated( void ); void GL_InitExtensions( void ); void GL_ClearExtensions( void ); int GL_LoadTexture( const char *name, const byte *buf, size_t size, int flags ); -void GL_FreeImage( const char *name ); qboolean VID_ScreenShot( const char *filename, int shot_type ); qboolean VID_CubemapShot( const char *base, uint size, const float *vieworg, qboolean skyshot ); void R_GammaChanged( qboolean do_reset_gamma ); @@ -545,7 +538,6 @@ int R_CreateDecalList( decallist_t *pList ); void R_ClearAllDecals( void ); byte *Mod_GetCurrentVis( void ); void Mod_SetOrthoBounds( const float *mins, const float *maxs ); -void R_NewMap( void ); void CL_AddCustomBeam( cl_entity_t *pEnvBeam ); // diff --git a/ref/soft/r_local.h b/ref/soft/r_local.h index 0b76ad97..05c753ca 100644 --- a/ref/soft/r_local.h +++ b/ref/soft/r_local.h @@ -526,7 +526,6 @@ void GL_InitExtensions( void ); void GL_ClearExtensions( void ); void VID_CheckChanges( void ); int GL_LoadTexture( const char *name, const byte *buf, size_t size, int flags ); -void GL_FreeImage( const char *name ); qboolean VID_ScreenShot( const char *filename, int shot_type ); qboolean VID_CubemapShot( const char *base, uint size, const float *vieworg, qboolean skyshot ); void R_GammaChanged( qboolean do_reset_gamma );