Skip to content

Commit

Permalink
zig- remove unused decls
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Jan 21, 2022
1 parent 1a6f694 commit d3fd659
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion src/db/_db.zig
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const std = @import("std");
const string = []const u8;
const zorm = @import("zorm");
const extras = @import("extras");

const _internal = @import("./_internal.zig");
Expand Down
1 change: 0 additions & 1 deletion src/db/_internal.zig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ pub var db: Engine = undefined;

const epoch: i64 = 1577836800000; // 'Jan 1 2020' -> unix milli
pub var factory = ulid.Factory.init(epoch, std.crypto.random.*);
const _db = @import("./_db.zig");

pub fn ByKeyGen(comptime T: type) type {
return struct {
Expand Down
2 changes: 0 additions & 2 deletions src/handler/dashboard.zig
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const std = @import("std");
const http = @import("apple_pie");
const jwt = @import("jwt");

const db = @import("./../db/_db.zig");

Expand Down
1 change: 0 additions & 1 deletion src/handler/import.zig
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const std = @import("std");
const http = @import("apple_pie");

const db = @import("./../db/_db.zig");
Expand Down
1 change: 0 additions & 1 deletion src/handler/index.zig
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const std = @import("std");
const http = @import("apple_pie");

const db = @import("./../db/_db.zig");
Expand Down
3 changes: 0 additions & 3 deletions src/handler/package.zig
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
const std = @import("std");
const string = []const u8;
const http = @import("apple_pie");

const db = @import("./../db/_db.zig");

const _internal = @import("./_internal.zig");

pub fn get(_: void, response: *http.Response, request: http.Request, args: struct { remote: u64, user: string, package: string }) !void {
Expand Down
3 changes: 0 additions & 3 deletions src/handler/user.zig
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
const std = @import("std");
const string = []const u8;
const http = @import("apple_pie");

const db = @import("./../db/_db.zig");

const _internal = @import("./_internal.zig");

pub fn get(_: void, response: *http.Response, request: http.Request, args: struct { remote: u64, user: string }) !void {
Expand Down

0 comments on commit d3fd659

Please sign in to comment.