MCPcopy Create free account
hub / github.com/VCVRack/Rack / clear

Method clear

src/history.cpp:232–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232void State::clear() {
233 for (Action* action : actions) {
234 delete action;
235 }
236 actions.clear();
237 actionIndex = 0;
238 savedIndex = -1;
239}
240
241void State::push(Action* action) {
242 // Delete all future actions (if we have undone some actions)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected