From 753a06c54dca91e15be675aad4006b7176c1b732 Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Mon, 3 Apr 2023 15:15:14 -0700 Subject: [PATCH] remove dead code --- src/main.zig | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/main.zig b/src/main.zig index 9314879..676e340 100644 --- a/src/main.zig +++ b/src/main.zig @@ -488,23 +488,6 @@ fn getNewDimensions(width: usize, height: usize, desired_width: usize, desired_h }; } -fn logo() !void { - c.MagickWandGenesis(); - - // Create a wand - var mw = c.NewMagickWand(); - - // Read the input image - _ = c.MagickReadImage(mw, "logo:"); // TODO: What is the return val? - // write it - _ = c.MagickWriteImage(mw, "logo.jpg"); // TODO: What is the return val? - - // Tidy up - if (mw) |w| mw = c.DestroyMagickWand(w); - - c.MagickWandTerminus(); -} - test "gets correct bytes" { const bg_file: [:0]u8 = @constCast("logo:"); const opts = .{ .background_filename = bg_file, .device_file = "-" };