void DBufRequester::removeBuffer( const MC2SimpleString& descr ) { // First remove the buffer here internalRemove( descr ); // Then remove it from the parent. if ( m_parentRequester ) { m_parentRequester->removeBuffer( descr ); } }
void aremoveAtIndex(Array *array, int index) { if (index < 0 || index >= array->size) return; int size = array->size, i; for (i = 0; i < size; i++) { if (i == index) { internalRemove(array, i, size); break; } } }
void SceneGraph::remove(const std::string path) { if (_indices.find(path) == _indices.end()) { Log.Error("SceneGraph: Index `%s` does not exists.", path.c_str()); return; } if (path == "/") { Log.Error("SceneGraph: Root object can not be removed."); return; } internalRemove(_indices[path]); }
int remove(const ObjType& u) { // remove u from set: returns 1 iff u was in set const int idx = internalRemove(u); if (idx==-1) return 0; // not a member currentSize--; return 1; // was a member (not anymore) }