From cda90f24b93a7794bc85d8a3f54f82165a857cbb Mon Sep 17 00:00:00 2001 From: terencehill Date: Mon, 11 May 2020 16:48:01 +0200 Subject: [PATCH] Get rid of 2 useless functions --- qcsrc/lib/cvar.qh | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/qcsrc/lib/cvar.qh b/qcsrc/lib/cvar.qh index e8e2c5488..4b292a3a5 100644 --- a/qcsrc/lib/cvar.qh +++ b/qcsrc/lib/cvar.qh @@ -30,23 +30,12 @@ string MakeConsoleSafe(string input) return input; } -ERASEABLE -void cvar_describe(string name, string desc) -{ - localcmd(sprintf("\nset %1$s \"$%1$s\" \"%2$s\"\n", name, MakeConsoleSafe(desc))); -} - -ERASEABLE -void cvar_archive(string name) -{ - localcmd(sprintf("\nseta %1$s \"$%1$s\"\n", name)); -} - ERASEABLE void RegisterCvars_Set(string name, string def, string desc, bool archive, string file) { - cvar_describe(name, desc); - if (archive) cvar_archive(name); + localcmd(sprintf("\nset %1$s \"$%1$s\" \"%2$s\"\n", name, MakeConsoleSafe(desc))); + if (archive) + localcmd(sprintf("\nseta %1$s \"$%1$s\"\n", name)); } int RegisterCvars_Save_fd; -- 2.39.2