8 weeks ago
remove unused function
--- a/src/server/config/keyfile.c Thu Jan 30 18:54:43 2025 +0100 +++ b/src/server/config/keyfile.c Fri Jan 31 21:01:48 2025 +0100 @@ -66,6 +66,7 @@ } ucx_mempool_destroy(conf->parser.mp->pool); */ + free(conf->file); free(conf); }
--- 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);