// RemoveChild implements the `Directory` interface.
RemoveChild implements the `Directory` interface.
// RemoveChild implements the ` Directory ` interface .
func (d *HAMTDirectory) RemoveChild(ctx context.Context, name string) error {
	oldChild, err := d.shard.Take(ctx, name)
	if err != nil {
		return err
	}
	if oldChild != nil {
		d.removeFromSizeChange(oldChild.Name, oldChild.Cid)
	}
	return nil
}
func ( d * HAMTDirectory ) RemoveChild ( ctx context . Context , name string ) error { oldChild , err := d . shard . Take ( ctx , name ) if err != nil { return err } if oldChild != nil { d . removeFromSizeChange ( oldChild . Name , oldChild . Cid ) } return nil }
RemoveChild implements the `Directory` interface.
RemoveChild implements the ` Directory ` interface .