diff options
author | Nicolas Pitre <nico@fluxnic.net> | 2021-03-20 16:29:08 -0400 |
---|---|---|
committer | Nicolas Pitre <nico@fluxnic.net> | 2021-03-20 16:33:12 -0400 |
commit | ff591ab004afd4451049f5c10b7c183ecf00c715 (patch) | |
tree | a6471d2cbe3a3e0007cf08d70437f2bf57044c92 /src/main.c | |
parent | b8895d0cea59a5fbed523a91f34c963b752acdb4 (diff) |
remove predefined_conf_d
This is not used anywhere. And there is no need to have a full
dictionary for that either. If necessary the original value could
still be retrieved from the default-config array.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -142,7 +142,6 @@ int rescol = RESCOL; /**< Columns reserved for row numbers */ struct block * buffer; struct block * lastcmd_buffer; struct dictionary * user_conf_d; /**< User's configuration dictionary */ -struct dictionary * predefined_conf_d; /**< Predefined configuration dictionary */ struct history * commandline_history; struct history * insert_history; char stderr_buffer[1024] = ""; @@ -198,7 +197,6 @@ int main (int argc, char ** argv) { // start configuration dictionaries user_conf_d = create_dictionary(); - predefined_conf_d = create_dictionary(); store_default_config_values(); // Stores default values in user_conf_d // Read the main() parameters and replace values in user_conf_d as necessary @@ -528,8 +526,7 @@ int exit_app(int status) { fclose(fdoutput); } - // delete user and predefined config dictionaries - destroy_dictionary(predefined_conf_d); + // delete user config dictionaries destroy_dictionary(user_conf_d); return status; |