From ac30ed33015f311fc944312009070746b104e4ba Mon Sep 17 00:00:00 2001 From: cloudwalk Date: Tue, 8 Sep 2020 13:19:26 +0000 Subject: [PATCH] cvar: Remove commented code in the header, unlikely to ever be used. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12913 d7cf8633-e32d-0410-b094-e92efae38249 --- cvar.h | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) diff --git a/cvar.h b/cvar.h index 96a58299..186d1677 100644 --- a/cvar.h +++ b/cvar.h @@ -80,41 +80,6 @@ interface from being ambiguous. #define CVAR_DEFAULTSET (1<<30) #define CVAR_ALLOCATED (1<<31) -/* -// type of a cvar for menu purposes -#define CVARMENUTYPE_FLOAT 1 -#define CVARMENUTYPE_INTEGER 2 -#define CVARMENUTYPE_SLIDER 3 -#define CVARMENUTYPE_BOOL 4 -#define CVARMENUTYPE_STRING 5 -#define CVARMENUTYPE_OPTION 6 - -// which menu to put a cvar in -#define CVARMENU_GRAPHICS 1 -#define CVARMENU_SOUND 2 -#define CVARMENU_INPUT 3 -#define CVARMENU_NETWORK 4 -#define CVARMENU_SERVER 5 - -#define MAX_CVAROPTIONS 16 - -typedef struct cvaroption_s -{ - int value; - const char *name; -} -cvaroption_t; - -typedef struct menucvar_s -{ - int type; - float valuemin, valuemax, valuestep; - int numoptions; - cvaroption_t optionlist[MAX_CVAROPTIONS]; -} -menucvar_t; -*/ - typedef struct cvar_s { int flags; @@ -148,7 +113,6 @@ typedef struct cvar_s int globaldefindex[3]; int globaldefindex_stringno[3]; - //menucvar_t menuinfo; struct cvar_s *next; } cvar_t; @@ -168,16 +132,6 @@ cvar_state_t; extern cvar_state_t cvars_all; extern cvar_state_t cvars_null; // used by cmd_serverfromclient which intentionally has no cvars available -/* -void Cvar_MenuSlider(cvar_t *variable, int menu, float slider_min, float slider_max, float slider_step); -void Cvar_MenuBool(cvar_t *variable, int menu, const char *name_false, const char *name_true); -void Cvar_MenuFloat(cvar_t *variable, int menu, float range_min, float range_max); -void Cvar_MenuInteger(cvar_t *variable, int menu, int range_min, int range_max); -void Cvar_MenuString(cvar_t *variable, int menu); -void Cvar_MenuOption(cvar_t *variable, int menu, int value[16], const char *name[16]); -*/ - - void Cvar_RegisterAlias(cvar_t *variable, const char *alias ); void Cvar_RegisterCallback(cvar_t *variable, void (*callback)(cvar_t *)); -- 2.39.2