@Override
	public FixedKeyNode removeLeaf() throws IOException {

		Field key = getKeyField(0);
		int prevBufferId = buffer.getInt(PREV_LEAF_ID_OFFSET);
		int nextBufferId = buffer.getInt(NEXT_LEAF_ID_OFFSET);
		if (prevBufferId >= 0) {
			FixedKeyRecordNode prevNode =
				(FixedKeyRecordNode) nodeMgr.getFixedKeyNode(prevBufferId);
			prevNode.getBuffer().putInt(NEXT_LEAF_ID_OFFSET, nextBufferId);
		}
		if (nextBufferId >= 0) {
			FixedKeyRecordNode nextNode =
				(FixedKeyRecordNode) nodeMgr.getFixedKeyNode(nextBufferId);
			nextNode.getBuffer().putInt(PREV_LEAF_ID_OFFSET, prevBufferId);
		}

		nodeMgr.deleteNode(this);
		if (parent == null) {
			return null;
		}
		return parent.deleteChild(key);
	}
Remove this leaf from the tree.
@return root node which may have changed.
@throws IOException thrown if IO error occurs
Ghidra/Framework/DB/src/main/java/db/FixedKeyRecordNode.java