diff options
| author | Robert Heinrich | 2012-03-29 17:20:25 +0200 |
|---|---|---|
| committer | Robert Heinrich | 2012-03-29 17:20:25 +0200 |
| commit | 836d8de73e84dc8cf69307218478d8639e26f469 (patch) | |
| tree | 36a3fc1d602db03610abb612a8b8df4a185cbade /plugins/changelayer.cpp | |
| parent | e249ef1377ba99388ac967a4f76dda4b863d50be (diff) | |
| download | dfhack-836d8de73e84dc8cf69307218478d8639e26f469.tar.gz dfhack-836d8de73e84dc8cf69307218478d8639e26f469.tar.bz2 dfhack-836d8de73e84dc8cf69307218478d8639e26f469.tar.xz | |
minor: commands.clear() is not needed in plugin_init() anymore. (done by pluginManager now)
removed some useless comments
Diffstat (limited to 'plugins/changelayer.cpp')
| -rw-r--r-- | plugins/changelayer.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/plugins/changelayer.cpp b/plugins/changelayer.cpp index 5f7d5cf0..d56360d8 100644 --- a/plugins/changelayer.cpp +++ b/plugins/changelayer.cpp @@ -84,11 +84,8 @@ command_result changelayer (color_ostream &out, std::vector <std::string> & 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 <PluginCommand> &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 <Plug return CR_OK; } -// This is called right before the plugin library is removed from memory. DFhackCExport command_result plugin_shutdown ( color_ostream &out ) { - // You *MUST* kill all threads you created before this returns. - // If everything fails, just return CR_FAILURE. Your plugin will be - // in a zombie state, but things won't crash. return CR_OK; } |
