MCPcopy Create free account
hub / github.com/MyGUI/mygui / RemoveItem

Method RemoveItem

UnitTests/UnitTest_MultiList/UnitTest_List.h:114–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 }
113
114 void RemoveItem()
115 {
116 if (count_items == 0)
117 return;
118
119 size_t index = count_items == 0 ? 0 : ((size_t)rand() % count_items);
120
121 mirror_list->removeItemAt(index);
122 original_list->removeItemAt(index);
123
124 count_items--;
125
126 checkList();
127 }
128
129 void RemoveItem(size_t _count)
130 {

Callers

nothing calls this directly

Calls 2

RemoveItemFunction · 0.85
removeItemAtMethod · 0.45

Tested by

no test coverage detected