Skip to content
Snippets Groups Projects
Unverified Commit 5e5f7086 authored by Alejandro Perea's avatar Alejandro Perea Committed by GitHub
Browse files

Fix deprecation references (#196)

parent 7c072c9f
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ impl Map { ...@@ -70,7 +70,7 @@ impl Map {
/// the library won't read from the filesystem if it is not required to do so. /// the library won't read from the filesystem if it is not required to do so.
/// ///
/// The tileset cache is used to store and refer to any tilesets found along the way. /// The tileset cache is used to store and refer to any tilesets found along the way.
#[deprecated(since = "0.10.1", note = "Use `Loader::parse_tmx_map_from` instead")] #[deprecated(since = "0.10.1", note = "Use `Loader::load_tmx_map_from` instead")]
pub fn parse_reader<R: Read>( pub fn parse_reader<R: Read>(
reader: R, reader: R,
path: impl AsRef<Path>, path: impl AsRef<Path>,
...@@ -83,7 +83,7 @@ impl Map { ...@@ -83,7 +83,7 @@ impl Map {
/// files will be loaded relative to the path given. /// files will be loaded relative to the path given.
/// ///
/// The tileset cache is used to store and refer to any tilesets found along the way. /// The tileset cache is used to store and refer to any tilesets found along the way.
#[deprecated(since = "0.10.1", note = "Use `Loader::parse_tmx_map` instead")] #[deprecated(since = "0.10.1", note = "Use `Loader::load_tmx_map` instead")]
pub fn parse_file(path: impl AsRef<Path>, cache: &mut impl ResourceCache) -> Result<Self> { pub fn parse_file(path: impl AsRef<Path>, cache: &mut impl ResourceCache) -> Result<Self> {
let reader = File::open(path.as_ref()).map_err(|err| Error::CouldNotOpenFile { let reader = File::open(path.as_ref()).map_err(|err| Error::CouldNotOpenFile {
path: path.as_ref().to_owned(), path: path.as_ref().to_owned(),
......
...@@ -97,7 +97,7 @@ impl Tileset { ...@@ -97,7 +97,7 @@ impl Tileset {
/// ///
/// assert_eq!(tileset.image.unwrap().source, PathBuf::from("assets/tilesheet.png")); /// assert_eq!(tileset.image.unwrap().source, PathBuf::from("assets/tilesheet.png"));
/// ``` /// ```
#[deprecated(since = "0.10.1", note = "Use `Loader::parse_tsx_tileset` instead")] #[deprecated(since = "0.10.1", note = "Use `Loader::load_tsx_tileset_from` instead")]
pub fn parse_reader<R: Read>(reader: R, path: impl AsRef<Path>) -> Result<Self> { pub fn parse_reader<R: Read>(reader: R, path: impl AsRef<Path>) -> Result<Self> {
crate::parse::xml::parse_tileset(reader, path.as_ref()) crate::parse::xml::parse_tileset(reader, path.as_ref())
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment