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:
parent
1f66c08567
commit
2795dc487c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user