MCPcopy Create free account
hub / github.com/CesiumGS/cesium-native / removeCreditReference

Method removeCreditReference

CesiumUtility/src/CreditSystem.cpp:175–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175bool CreditSystem::removeCreditReference(Credit credit) {
176 CreditRecord& record = this->_credits[credit._id];
177 // If the Credit is from a previous generation (a deleted credit source),
178 // ignore it.
179 if (credit._generation != record.generation) {
180 return false;
181 }
182
183 CESIUM_ASSERT(record.referenceCount > 0);
184 --record.referenceCount;
185
186 return true;
187}
188
189const CreditsSnapshot&
190CreditSystem::getSnapshot(CreditFilteringMode filteringMode) noexcept {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected