summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@fluxnic.net>2021-03-20 16:29:08 -0400
committerNicolas Pitre <nico@fluxnic.net>2021-03-20 16:33:12 -0400
commitff591ab004afd4451049f5c10b7c183ecf00c715 (patch)
treea6471d2cbe3a3e0007cf08d70437f2bf57044c92 /src/main.c
parentb8895d0cea59a5fbed523a91f34c963b752acdb4 (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.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 01c7e88..e329666 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;