From 8bb5ec5e26bac440beebc5f2c3860d320f3e9aae Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 24 Mar 2023 02:54:14 +0300 Subject: [PATCH] ref: remove renderer description export, it's unused now --- engine/ref_api.h | 3 --- ref/gl/gl_context.c | 13 ------------- ref/soft/r_context.c | 5 ----- 3 files changed, 21 deletions(-) diff --git a/engine/ref_api.h b/engine/ref_api.h index 1ac5adcb..dbcef6d0 100644 --- a/engine/ref_api.h +++ b/engine/ref_api.h @@ -621,9 +621,6 @@ typedef struct ref_interface_s typedef int (*REFAPI)( int version, ref_interface_t *pFunctionTable, ref_api_t* engfuncs, ref_globals_t *pGlobals ); #define GET_REF_API "GetRefAPI" -typedef void (*REF_HUMANREADABLE_NAME)( char *out, size_t len ); -#define GET_REF_HUMANREADABLE_NAME "GetRefHumanReadableName" - #ifdef REF_DLL #define DEFINE_ENGINE_SHARED_CVAR( x, y ) cvar_t *x = NULL; #define DECLARE_ENGINE_SHARED_CVAR( x, y ) extern cvar_t *x; diff --git a/ref/gl/gl_context.c b/ref/gl/gl_context.c index c95c0155..2673c93e 100644 --- a/ref/gl/gl_context.c +++ b/ref/gl/gl_context.c @@ -512,16 +512,3 @@ int EXPORT GetRefAPI( int version, ref_interface_t *funcs, ref_api_t *engfuncs, return REF_API_VERSION; } - -void EXPORT GetRefHumanReadableName( char *out, size_t size ) -{ -#if defined XASH_NANOGL - Q_strncpy( out, "GLES1(NanoGL)", size ); -#elif defined XASH_WES - Q_strncpy( out, "GLES2(gl-wes-v2)", size ); -#elif defined XASH_GL4ES - Q_strncpy( out, "GLES2(gl4es)", size ); -#else - Q_strncpy( out, "OpenGL", size ); -#endif -} diff --git a/ref/soft/r_context.c b/ref/soft/r_context.c index d02ff9e8..3004cb8e 100644 --- a/ref/soft/r_context.c +++ b/ref/soft/r_context.c @@ -582,8 +582,3 @@ int EXPORT GAME_EXPORT GetRefAPI( int version, ref_interface_t *funcs, ref_api_t return REF_API_VERSION; } - -void EXPORT GetRefHumanReadableName( char *out, size_t size ) -{ - Q_strncpy( out, "Software", size ); -}