diff options
author | Philip Flohr <philip.flohr@student.kit.edu> | 2018-05-07 18:28:22 +0200 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2018-09-06 19:28:02 +0300 |
commit | 2795dc487cdcd9a4adf55799b36516bfd7725710 (patch) | |
tree | 710aab6e59af06bbbe626481edc6548e9a861f61 /src | |
parent | 1f66c08567bf85eaa51eeffbc08d60e5903151f2 (diff) | |
download | profani-tty-2795dc487cdcd9a4adf55799b36516bfd7725710.tar.gz |
removed unreachable code: if plugin is loaded it is also installed and therefore installation will fail. -> The unload code is not needed
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/plugins.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c index e63aec84..889bb91b 100644 --- a/src/plugins/plugins.c +++ b/src/plugins/plugins.c @@ -184,11 +184,6 @@ plugins_install(const char *const plugin_name, const char *const filename, GStri return FALSE; } - ProfPlugin *plugin = g_hash_table_lookup(plugins, plugin_name); - if (plugin) { - plugins_unload(plugin_name); - } - gboolean result = copy_file(filename, target_path->str); g_string_free(target_path, TRUE); |