shared config reader
[netris.git] / server.c
index fe7eefc0e59e6dcafd217e480fab0ff824757ee9..947c8e196029dc37d6c1a1722d386469d68ff36b 100644 (file)
--- a/server.c
+++ b/server.c
@@ -455,22 +455,6 @@ void SUsage(void)
        );
 }
 
-void WriteConf(void)
-{
-       FILE *file_out;
-
-       file_out = fopen(CONFIG_FILE, "w");
-       if (file_out == NULL) {
-               perror("Error writing config file");
-               exit(1);
-       }
-
-       fprintf(file_out, "### NETRIS %s Config file ###\n\n", version_string);
-
-       fclose(file_out);
-       fprintf(stderr, "Wrote new game configuration to %s\n", CONFIG_FILE);
-}
-
 void HandleOption(char tag, char *value)
 {
        switch (tag) {