aquatic_http: urldecode_20_bytes: remove duplicate check

request-from-bytes performance seems to have regressed,
I don't know why (+8%)
This commit is contained in:
Joakim Frostegård 2020-07-24 23:05:21 +02:00
parent 668b480e0f
commit 997482d46d
5 changed files with 1003 additions and 1010 deletions

View file

@ -55,13 +55,6 @@ pub fn urldecode_20_bytes(value: &str) -> anyhow::Result<[u8; 20]> {
anyhow::anyhow!("hex decode error: {:?}", err)
)?;
} else {
if c as u32 > 255 {
return Err(anyhow::anyhow!(
"character not in single byte range: {:#?}",
c
));
}
out_arr[i] = c as u8;
}
}