Google is committed to advancing racial equity for Black communities. See how.

removeNode method

int removeNode (String name)

Removes a directory entry with the given name.

Returns ZX.OK on success. Returns ZX.RR_NOT_FOUND if there is no node with the given name.

Implementation

int removeNode(String name) {
  var e = _entries.remove(name);
  if (e == null) {
    return ZX.ERR_NOT_FOUND;
  }
  _treeEntries.remove(e);
  return ZX.OK;
}