MCPcopy Create free account
hub / github.com/LibreVR/Revive / removeLibrary

Function removeLibrary

ReviveOverlay/Oculus.js:159–169  ·  view source on GitHub ↗
(library)

Source from the content-addressed store, hash-verified

157}
158
159function removeLibrary(library) {
160 // Iterate backwards so we can remove elements while iterating
161 var anyRemoved = false;
162 for (var i = coverModel.count - 1; i >= 0; i--) {
163 if (coverModel.get(i).libraryId == library) {
164 coverModel.remove(i);
165 anyRemoved = true;
166 }
167 }
168 return anyRemoved;
169}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected