mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-31 07:18:22 +00:00
rtl: remove dead code in rbtree
This commit is contained in:
@@ -84,7 +84,6 @@ pub fn RBTree(comptime cmp: fn (*const bst.Node, *const bst.Node) std.math.Order
|
|||||||
|
|
||||||
self.tree.insert(elem) catch |err| {
|
self.tree.insert(elem) catch |err| {
|
||||||
if (err != error.AlreadyExists) unreachable;
|
if (err != error.AlreadyExists) unreachable;
|
||||||
set_color(elem, red);
|
|
||||||
return error.AlreadyExists;
|
return error.AlreadyExists;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user