diff --git a/plugins/changeitem.cpp b/plugins/changeitem.cpp index dae0d4a6f..b7dd17a06 100644 --- a/plugins/changeitem.cpp +++ b/plugins/changeitem.cpp @@ -61,7 +61,6 @@ const string changeitem_help = DFhackCExport command_result plugin_init ( color_ostream &out, vector &commands) { - //commands.clear(); commands.push_back(PluginCommand( "changeitem", "Change item attributes (material, quality).", df_changeitem, false, diff --git a/plugins/changelayer.cpp b/plugins/changelayer.cpp index 5f7d5cf0e..d56360d83 100644 --- a/plugins/changelayer.cpp +++ b/plugins/changelayer.cpp @@ -84,11 +84,8 @@ command_result changelayer (color_ostream &out, std::vector & para DFHACK_PLUGIN("changelayer"); -// Mandatory init function. If you have some global state, create it here. DFhackCExport command_result plugin_init ( color_ostream &out, std::vector &commands) { - // Fill the command list with your commands. - commands.clear(); commands.push_back(PluginCommand( "changelayer", "Change a whole geology layer.", changelayer, false, /* true means that the command can't be used from non-interactive user interface */ @@ -98,12 +95,8 @@ DFhackCExport command_result plugin_init ( color_ostream &out, std::vector &commands) { - commands.clear(); commands.push_back(PluginCommand("cursecheck", "Checks for cursed creatures (vampires, necromancers, zombies, ...).", cursecheck, false )); diff --git a/plugins/liquids.cpp b/plugins/liquids.cpp index 5f4d5b4fe..a7483a886 100644 --- a/plugins/liquids.cpp +++ b/plugins/liquids.cpp @@ -57,7 +57,6 @@ DFHACK_PLUGIN("liquids"); DFhackCExport command_result plugin_init ( color_ostream &out, std::vector &commands) { liquids_hist.load("liquids.history"); - commands.clear(); commands.push_back(PluginCommand( "liquids", "Place magma, water or obsidian.", df_liquids, true)); // interactive, needs console for prompt