MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / deleteWorlds

Method deleteWorlds

launcher/minecraft/WorldList.cpp:147–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147bool WorldList::deleteWorlds(int first, int last)
148{
149 for (int i = first; i <= last; i++)
150 {
151 World &m = worlds[i];
152 m.destroy();
153 }
154 beginRemoveRows(QModelIndex(), first, last);
155 worlds.erase(worlds.begin() + first, worlds.begin() + last + 1);
156 endRemoveRows();
157 emit changed();
158 return true;
159}
160
161bool WorldList::resetIcon(int row)
162{

Callers

nothing calls this directly

Calls 3

QModelIndexClass · 0.85
beginMethod · 0.80
destroyMethod · 0.45

Tested by

no test coverage detected