| 774 | } |
| 775 | |
| 776 | static int logistics_clearStockpileConfig(lua_State *L) { |
| 777 | color_ostream *out = Lua::GetOutput(L); |
| 778 | if (!out) |
| 779 | out = &Core::getInstance().getConsole(); |
| 780 | DEBUG(control, *out).print("entering logistics_clearStockpileConfig\n"); |
| 781 | |
| 782 | vector<df::building_stockpilest*> sps; |
| 783 | find_stockpiles(L, 1, sps); |
| 784 | if (sps.empty()) |
| 785 | return 0; |
| 786 | |
| 787 | for (auto sp : sps) |
| 788 | remove_stockpile_config(*out, sp->stockpile_number); |
| 789 | return 0; |
| 790 | } |
| 791 | |
| 792 | static void logistics_clearAllStockpileConfigs(color_ostream &out) { |
| 793 | DEBUG(control, out).print("entering logistics_clearAllStockpileConfigs\n"); |
nothing calls this directly
no test coverage detected