From e9a757cece66af21e5dd1e5f98ae6952151190ab Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Fri, 20 Mar 2026 08:58:30 -0700 Subject: [PATCH] clean up options --- src/commands/options.zig | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/commands/options.zig b/src/commands/options.zig index 06c153e..f4ab3f0 100644 --- a/src/commands/options.zig +++ b/src/commands/options.zig @@ -132,8 +132,6 @@ pub fn printSection( test "printSection shows header and contracts" { var buf: [8192]u8 = undefined; var w: std.Io.Writer = .fixed(&buf); - var gpa = std.heap.GeneralPurposeAllocator(.{}){}; - defer _ = gpa.deinit(); const calls = [_]zfin.OptionContract{ .{ .contract_type = .call, .strike = 150.0, .expiration = .{ .days = 20100 }, .bid = 5.0, .ask = 5.50, .last_price = 5.25 }, .{ .contract_type = .call, .strike = 155.0, .expiration = .{ .days = 20100 }, .bid = 2.0, .ask = 2.50, .last_price = 2.25 }, @@ -148,8 +146,6 @@ test "printSection shows header and contracts" { test "display shows chain header no color" { var buf: [8192]u8 = undefined; var w: std.Io.Writer = .fixed(&buf); - var gpa = std.heap.GeneralPurposeAllocator(.{}){}; - defer _ = gpa.deinit(); const calls = [_]zfin.OptionContract{}; const puts = [_]zfin.OptionContract{}; const chains = [_]zfin.OptionsChain{