Get rid of 2 useless functions
authorterencehill <piuntn@gmail.com>
Mon, 11 May 2020 14:48:01 +0000 (16:48 +0200)
committerterencehill <piuntn@gmail.com>
Mon, 11 May 2020 14:48:01 +0000 (16:48 +0200)
qcsrc/lib/cvar.qh

index e8e2c54880a1a29eed6c48d50a6ac0cd44c016ff..4b292a3a5b20a614b7d2fc3f9326c9e79758a8bf 100644 (file)
@@ -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;