MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / attachNullToParent

Method attachNullToParent

Ports/CLDC11/src/java/util/TreeMap.java:5127–5141  ·  view source on GitHub ↗
(Node<K, V> toDelete)

Source from the content-addressed store, hash-verified

5125 }
5126
5127 private void attachNullToParent(Node<K, V> toDelete) {
5128 Node<K, V> parent = toDelete.parent;
5129 if (parent == null) {
5130 root = null;
5131 } else {
5132 if (toDelete == parent.left) {
5133 parent.left = null;
5134 } else {
5135 parent.right = null;
5136 }
5137 if (!toDelete.color) {
5138 fixup(parent);
5139 }
5140 }
5141 }
5142
5143 private void fixNextChain(Node<K, V> node) {
5144 if (node.prev != null) {

Callers 1

deleteNodeMethod · 0.95

Calls 1

fixupMethod · 0.95

Tested by

no test coverage detected