summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2018-10-17 22:41:20 +0200
committerDave Davenport <qball@gmpclient.org>2018-10-17 22:41:20 +0200
commitf80e7d52bcd10d1220be571e103e119bae4ad437 (patch)
tree8571bd3efc9ea09b99eac1b36759ed895ad4b08f /source
parente8edc42f9d078f7cde5b71e7780c0d6a1c99e96c (diff)
[Helper] Remove fixed key/values and accept keys with NULL as values.
Diffstat (limited to 'source')
-rw-r--r--source/helper.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source/helper.c b/source/helper.c
index 6722cf50..788eb489 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -1287,9 +1287,6 @@ char *helper_string_replace_if_exists ( char * string, ... )
GError *error = NULL;
GHashTable *h;
h = g_hash_table_new ( g_str_hash, g_str_equal );
- // By default, we insert terminal and ssh-client
- g_hash_table_insert ( h, "{terminal}", config.terminal_emulator );
- g_hash_table_insert ( h, "{ssh-client}", config.ssh_client );
// Add list from variable arguments.
va_list ap;
va_start ( ap, string );
@@ -1299,9 +1296,6 @@ char *helper_string_replace_if_exists ( char * string, ... )
break;
}
char *value = va_arg ( ap, char * );
- if ( value == (char *) 0 ) {
- break;
- }
g_hash_table_insert ( h, key, value );
}
va_end ( ap );