Skip to content

Commit

Permalink
Remove deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingun committed Jun 24, 2022
1 parent b686d3d commit cac237b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/de/mod.rs
Expand Up @@ -300,15 +300,6 @@ where
from_slice(s.as_bytes())
}

/// Deserialize an instance of type `T` from bytes of XML text.
#[deprecated = "Use `from_slice` instead"]
pub fn from_bytes<'de, T>(s: &'de [u8]) -> Result<T, DeError>
where
T: Deserialize<'de>,
{
from_slice(s)
}

/// Deserialize an instance of type `T` from bytes of XML text.
pub fn from_slice<'de, T>(s: &'de [u8]) -> Result<T, DeError>
where
Expand Down Expand Up @@ -400,12 +391,6 @@ where
}
}

/// Get a new deserializer from a regular BufRead
#[deprecated = "Use `Deserializer::new` instead"]
pub fn from_borrowing_reader(reader: R) -> Self {
Self::new(reader)
}

/// Set the maximum number of events that could be skipped during deserialization
/// of sequences.
///
Expand Down

0 comments on commit cac237b

Please sign in to comment.