about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-04-17 14:50:42 -0700
committerAlex Crichton <alex@alexcrichton.com>2015-04-21 11:37:35 -0700
commite091ba3f3e8b2b00827ab4934314829b33ffb966 (patch)
tree951ae5b413ea1e31b89e150d193342f4913d606a /src/libstd
parent69ded69d630e9f908aa0cf65dba124a9eb9d6eb7 (diff)
downloadrust-e091ba3f3e8b2b00827ab4934314829b33ffb966.tar.gz
rust-e091ba3f3e8b2b00827ab4934314829b33ffb966.zip
std: Remove deprecated AsPath trait
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/path.rs32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/libstd/path.rs b/src/libstd/path.rs
index 1ad1508ae2d..d516599cf5f 100644
--- a/src/libstd/path.rs
+++ b/src/libstd/path.rs
@@ -1185,14 +1185,6 @@ impl AsRef<OsStr> for PathBuf {
 }
 
 #[stable(feature = "rust1", since = "1.0.0")]
-#[deprecated(since = "1.0.0", reason = "trait is deprecated")]
-impl AsOsStr for PathBuf {
-    fn as_os_str(&self) -> &OsStr {
-        &self.inner[..]
-    }
-}
-
-#[stable(feature = "rust1", since = "1.0.0")]
 impl Into<OsString> for PathBuf {
     fn into(self) -> OsString {
         self.inner
@@ -1653,14 +1645,6 @@ impl AsRef<OsStr> for Path {
 }
 
 #[stable(feature = "rust1", since = "1.0.0")]
-#[deprecated(since = "1.0.0", reason = "trait is deprecated")]
-impl AsOsStr for Path {
-    fn as_os_str(&self) -> &OsStr {
-        &self.inner
-    }
-}
-
-#[stable(feature = "rust1", since = "1.0.0")]
 impl fmt::Debug for Path {
     fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> {
         self.inner.fmt(formatter)
@@ -1711,22 +1695,6 @@ impl cmp::Ord for Path {
     }
 }
 
-/// Freely convertible to a `Path`.
-#[unstable(feature = "std_misc")]
-#[deprecated(since = "1.0.0", reason = "use std::convert::AsRef<Path> instead")]
-pub trait AsPath {
-    /// Converts to a `Path`.
-    #[unstable(feature = "std_misc")]
-    fn as_path(&self) -> &Path;
-}
-
-#[unstable(feature = "std_misc")]
-#[deprecated(since = "1.0.0", reason = "use std::convert::AsRef<Path> instead")]
-#[allow(deprecated)]
-impl<T: AsOsStr + ?Sized> AsPath for T {
-    fn as_path(&self) -> &Path { Path::new(self.as_os_str()) }
-}
-
 #[stable(feature = "rust1", since = "1.0.0")]
 impl AsRef<Path> for Path {
     fn as_ref(&self) -> &Path { self }