From b3715111392e5eceb4ac7c1805e1b685a37b00b6 Mon Sep 17 00:00:00 2001 From: Ali MJ Al-Nasrawy Date: Mon, 28 Mar 2022 22:40:43 +0300 Subject: [PATCH] remove unused charsets --- actix-router/src/quoter.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/actix-router/src/quoter.rs b/actix-router/src/quoter.rs index 9bfb41dcb..3debf4eff 100644 --- a/actix-router/src/quoter.rs +++ b/actix-router/src/quoter.rs @@ -1,21 +1,3 @@ -#[allow(dead_code)] -mod charsets { - pub const GEN_DELIMS: &[u8] = b":/?#[]@"; - pub const SUB_DELIMS_WITHOUT_QS: &[u8] = b"!$'()*,"; - pub const SUB_DELIMS: &[u8] = b"!$'()*,+?=;"; - pub const RESERVED: &[u8] = b":/?#[]@!$'()*,+?=;"; - pub const UNRESERVED: &[u8] = b"abcdefghijklmnopqrstuvwxyz - ABCDEFGHIJKLMNOPQRSTUVWXYZ - 1234567890 - -._~"; - pub const ALLOWED: &[u8] = b"abcdefghijklmnopqrstuvwxyz - ABCDEFGHIJKLMNOPQRSTUVWXYZ - 1234567890 - -._~ - !$'()*,"; - pub const QS: &[u8] = b"+&=;b"; -} - /// Partial Percent-decoding. pub struct Quoter { /// Simple bit-map of protected values in the 0-127 ASCII range.