From 737a9dc0083088e7f874c103e97b2c895c973ff5 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sat, 2 Oct 2021 13:40:39 -0700 Subject: [PATCH] remove some dead code --- src/main.zig | 1 - src/uri.zig | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/main.zig b/src/main.zig index 2265f52..b4a7ac3 100644 --- a/src/main.zig +++ b/src/main.zig @@ -7,7 +7,6 @@ const readRequestHeader = @import("./header.zig").readRequestHeader; const requests = @import("./requests.zig"); const types = @import("./types.zig"); const analysis = @import("./analysis.zig"); -const URI = @import("./uri.zig"); const references = @import("./references.zig"); const rename = @import("./rename.zig"); const offsets = @import("./offsets.zig"); diff --git a/src/uri.zig b/src/uri.zig index e4a1ed1..8737605 100644 --- a/src/uri.zig +++ b/src/uri.zig @@ -90,13 +90,6 @@ pub fn pathRelative(allocator: *std.mem.Allocator, base: []const u8, rel: []cons return allocator.resize(result, result_index); } -pub const UriParseError = error{ - UriBadScheme, - UriBadHexChar, - UriBadEscape, - OutOfMemory, -}; - // Original code: https://github.com/andersfr/zig-lsp/blob/master/uri.zig fn parseHex(c: u8) !u8 { return switch (c) {