MCPcopy Create free account
hub / github.com/carbonengine/trinity / UnregisterLocalVariable

Method UnregisterLocalVariable

trinity/Tr2VariableStore.cpp:268–282  ·  view source on GitHub ↗

------------------------------------------------------------- Description: Unregisters a variable with the given name in this store. Arguments: name - Name of the variable to unregister. Return Value: true If the variable was found. false Otherwise. -------------------------------------------------------------

Source from the content-addressed store, hash-verified

266// false Otherwise.
267// -------------------------------------------------------------
268bool Tr2VariableStore::UnregisterLocalVariable( const char* name )
269{
270 if( !name )
271 {
272 return false;
273 }
274 auto it = m_variableMap.find( name );
275 if( it != m_variableMap.end() )
276 {
277 it->second->Invalidate();
278 m_variableMap.erase( it );
279 return true;
280 }
281 return false;
282}
283
284// -------------------------------------------------------------
285// Description:

Callers 1

UnregisterVariableMethod · 0.80

Calls 2

endMethod · 0.45
InvalidateMethod · 0.45

Tested by

no test coverage detected