MCPcopy Create free account
hub / github.com/cuberite/cuberite / ClearRecipes

Method ClearRecipes

src/FurnaceRecipe.cpp:185–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183
184
185void cFurnaceRecipe::ClearRecipes(void)
186{
187 for (RecipeList::iterator itr = m_pState->Recipes.begin(); itr != m_pState->Recipes.end(); ++itr)
188 {
189 Recipe R = *itr;
190 delete R.In;
191 delete R.Out;
192 }
193 m_pState->Recipes.clear();
194
195 for (FuelList::iterator itr = m_pState->Fuel.begin(); itr != m_pState->Fuel.end(); ++itr)
196 {
197 Fuel F = *itr;
198 delete F.In;
199 }
200 m_pState->Fuel.clear();
201}
202
203
204

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
clearMethod · 0.80

Tested by

no test coverage detected