From c3579fa48ab8e814058242e14d3b9d0dc4ff68c2 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Fri, 25 Jun 2021 18:18:19 +0200 Subject: fix 'unused variable' errors --- sqlite.zig | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sqlite.zig') diff --git a/sqlite.zig b/sqlite.zig index 3f43134..3c2471d 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -735,12 +735,6 @@ pub fn Iterator(comptime Type: type) type { // The options must contain an `allocator` field which will be used to create a copy of the data. fn readBytes(self: *Self, comptime BytesType: type, allocator: *mem.Allocator, _i: usize, comptime mode: ReadBytesMode) !BytesType { const i = @intCast(c_int, _i); - const type_info = @typeInfo(BytesType); - - var ret: BytesType = switch (BytesType) { - Text, Blob => .{ .data = "" }, - else => try dupeWithSentinel(BytesType, allocator, ""), - }; switch (mode) { .Blob => { @@ -1250,6 +1244,7 @@ fn addTestData(db: *Db) !void { test "sqlite: db init" { var db = try getTestDb(); + _ = db; } test "sqlite: db pragma" { -- cgit v1.2.3