remove dead code

This commit is contained in:
Emil Lerch 2023-04-03 15:15:14 -07:00
parent 59fbf04da6
commit 753a06c54d
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -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" { test "gets correct bytes" {
const bg_file: [:0]u8 = @constCast("logo:"); const bg_file: [:0]u8 = @constCast("logo:");
const opts = .{ .background_filename = bg_file, .device_file = "-" }; const opts = .{ .background_filename = bg_file, .device_file = "-" };