Delete key from tree */
| 112 | |
| 113 | /* Delete key from tree */ |
| 114 | int tree_delete(BPlusTree *tree, PyObject *key) { |
| 115 | BPlusNode *leaf = tree_find_leaf(tree, key); |
| 116 | if (!leaf) return -1; |
| 117 | |
| 118 | int result = node_delete(leaf, key); |
| 119 | if (result == 1) { |
| 120 | tree->size--; /* Successfully deleted */ |
| 121 | tree->modification_count++; |
| 122 | } |
| 123 | |
| 124 | return result; |
| 125 | } |
| 126 | |
| 127 | /* Get value for key */ |
| 128 | PyObject* tree_get(BPlusTree *tree, PyObject *key) { |
no test coverage detected