1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

removed unreachable code: if plugin is loaded it is also installed and therefore installation will fail. -> The unload code is not needed

This commit is contained in:
Philip Flohr 2018-05-07 18:28:22 +02:00 committed by Dmitry Podgorny
parent 1f66c08567
commit 2795dc487c

View File

@ -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);