mirror of
https://github.com/rdmsr/zag.git
synced 2026-10-27 13:58:20 +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| {
|
||||
if (err != error.AlreadyExists) unreachable;
|
||||
set_color(elem, red);
|
||||
return error.AlreadyExists;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user