From: terencehill Date: Mon, 11 May 2020 14:48:01 +0000 (+0200) Subject: Get rid of 2 useless functions X-Git-Tag: xonotic-v0.8.5~1085 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cda90f24b93a7794bc85d8a3f54f82165a857cbb;p=xonotic%2Fxonotic-data.pk3dir.git Get rid of 2 useless functions --- 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;