removing some used "unused" variables (#55)

wch-ch32v003
Ethan Frei 2 years ago committed by Matt Knight
parent dea71d5272
commit 0d0e667c26

@ -1704,7 +1704,6 @@ pub fn format(
options: std.fmt.FormatOptions, options: std.fmt.FormatOptions,
writer: anytype, writer: anytype,
) !void { ) !void {
_ = db;
_ = options; _ = options;
_ = fmt; _ = fmt;
try writer.writeAll("Regz Database:\n"); try writer.writeAll("Regz Database:\n");

@ -424,7 +424,6 @@ pub const RegisterProperties = struct {
reset_mask: ?u64, reset_mask: ?u64,
pub fn parse(arena: *ArenaAllocator, nodes: *xml.Node) !RegisterProperties { pub fn parse(arena: *ArenaAllocator, nodes: *xml.Node) !RegisterProperties {
_ = arena;
return RegisterProperties{ return RegisterProperties{
.size = try xml.parseIntForKey(u16, arena.child_allocator, nodes, "size"), .size = try xml.parseIntForKey(u16, arena.child_allocator, nodes, "size"),
.reset_value = try xml.parseIntForKey(u64, arena.child_allocator, nodes, "resetValue"), .reset_value = try xml.parseIntForKey(u64, arena.child_allocator, nodes, "resetValue"),

Loading…
Cancel
Save