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:
committed by
Dmitry Podgorny
parent
1f66c08567
commit
2795dc487c
@@ -184,11 +184,6 @@ plugins_install(const char *const plugin_name, const char *const filename, GStri
|
|||||||
return FALSE;
|
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);
|
gboolean result = copy_file(filename, target_path->str);
|
||||||
g_string_free(target_path, TRUE);
|
g_string_free(target_path, TRUE);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user