src/server/config/objconf.c

changeset 575
bbca8e94fa67
parent 490
d218607f5a7e
child 576
5c31cc844c68
--- a/src/server/config/objconf.c	Thu Jan 30 18:54:43 2025 +0100
+++ b/src/server/config/objconf.c	Fri Jan 31 21:01:48 2025 +0100
@@ -41,30 +41,6 @@
  *    object
  */
 
-ObjectConfig *load_object_config(char *file) {
-    FILE *in = fopen(file, "r");
-    if(in == NULL) {
-        return NULL;
-    }
-
-    ObjectConfig *conf = malloc(sizeof(ObjectConfig));
-    conf->parser.parse = objconf_parse;
-    conf->file = file;
-    //conf->conditions = NULL;
-    conf->levels = NULL;
-    conf->objects = cxLinkedListCreate(cxDefaultAllocator, NULL, CX_STORE_POINTERS);
-    //conf->lines = NULL;
-
-    int r = cfg_parse_basic_file((ConfigParser*)conf, in);
-    if(r != 0) {
-        // TODO: free
-        return NULL;
-    }
-    
-    fclose(in);
-
-    return conf;
-}
 
 ObjectConfig2* objectconf_load(const char *file) {
     CxMempool *mp = cxBasicMempoolCreate(512);

mercurial