Remove forgotten println statements
This commit is contained in:
parent
4896ecd426
commit
3b1eae7f7e
|
@ -64,7 +64,6 @@ pub fn prescan(bytes: &[u8]) -> Option<&'static Encoding> {
|
|||
.map(|c| matches!(c, 0x09 | 0x0A | 0x0C | 0x0D | 0x20 | 0x2F))
|
||||
.unwrap_or(false);
|
||||
if check.starts_with(b"<meta") && ends_in_whitespace {
|
||||
println!("c");
|
||||
// Advance the position pointer so that it points at the next 0x09, 0x0A, 0x0C, 0x0D, 0x20, or 0x2F byte (the one in sequence of characters matched above).
|
||||
position += 6;
|
||||
|
||||
|
@ -83,7 +82,6 @@ pub fn prescan(bytes: &[u8]) -> Option<&'static Encoding> {
|
|||
|
||||
// Attributes: Get an attribute and its value. If no attribute was sniffed, then jump to the processing step below.
|
||||
while let Some((key, value)) = prescan_get_attribute(&bytes, &mut position) {
|
||||
println!("att {key:?} {value:?}");
|
||||
// If the attribute's name is already in attribute list, then return to the step labeled attributes.
|
||||
if attributes.contains(&key) {
|
||||
continue;
|
||||
|
@ -222,7 +220,6 @@ pub fn prescan(bytes: &[u8]) -> Option<&'static Encoding> {
|
|||
pub fn prescan_get_attribute(bytes: &[u8], position: &mut usize) -> Option<(Vec<u8>, Vec<u8>)> {
|
||||
// If the byte at position is one of 0x09 (HT), 0x0A (LF), 0x0C (FF), 0x0D (CR), 0x20 (SP),
|
||||
// or 0x2F (/) then advance position to the next byte and redo this step.
|
||||
println!("A{position}");
|
||||
while matches!(
|
||||
bytes.get(*position),
|
||||
Some(0x09 | 0x0A | 0x0C | 0x0D | 0x20 | 0x2F)
|
||||
|
|
Loading…
Reference in New Issue