From 54034468b71b1b0100f72a809ecca079fc71e36e Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 9 Jul 2024 09:07:28 -0700 Subject: [PATCH] terminal: remove errdefer deleted call for refcountedset --- src/terminal/ref_counted_set.zig | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/terminal/ref_counted_set.zig b/src/terminal/ref_counted_set.zig index e19f8f70c..d5c90bd6f 100644 --- a/src/terminal/ref_counted_set.zig +++ b/src/terminal/ref_counted_set.zig @@ -237,11 +237,6 @@ pub fn RefCountedSet( return id; } - // Notify the context that the value is "deleted" if we return an - // error. This allows callers to clean up any resources associated - // with the value. - errdefer if (comptime @hasDecl(Context, "deleted")) ctx.deleted(value); - // If the item doesn't exist, we need an available ID. if (self.next_id >= self.layout.cap) { // Arbitrarily chosen, threshold for rehashing.