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 181b0d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Expand Up @@ -92,6 +92,8 @@
- [#118]: Remove `BytesStart::unescaped*` set of methods because they could return wrong results
Use methods on `Attribute` instead

- [#403]: Remove deprecated `quick_xml::de::from_bytes` and `Deserializer::from_borrowing_reader`

### New Tests

- [#9]: Added tests for incorrect nested tags in input
Expand All @@ -109,6 +111,7 @@
[#391]: https://github.com/tafia/quick-xml/pull/391
[#393]: https://github.com/tafia/quick-xml/pull/393
[#395]: https://github.com/tafia/quick-xml/pull/395
[#403]: https://github.com/tafia/quick-xml/pull/403

## 0.23.0 -- 2022-05-08

Expand Down
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 181b0d1

Please sign in to comment.