From 2795dc487cdcd9a4adf55799b36516bfd7725710 Mon Sep 17 00:00:00 2001 From: Philip Flohr Date: Mon, 7 May 2018 18:28:22 +0200 Subject: removed unreachable code: if plugin is loaded it is also installed and therefore installation will fail. -> The unload code is not needed --- src/plugins/plugins.c | 5 ----- 1 file changed, 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); -- cgit 1.4.1-2-gfad0