about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEduard Burtescu <edy.burt@gmail.com>2014-12-03 22:46:09 +0200
committerEduard Burtescu <edy.burt@gmail.com>2014-12-08 09:14:21 +0200
commitc75e8d46c2fc576661c01f9eadb0866b3367ca4b (patch)
treea12d8408a7df5b85afa8ab1b3e779c4463256bfc
parent83a44c7fa676b4e5e546ce3d4624e585f9a1e899 (diff)
downloadrust-c75e8d46c2fc576661c01f9eadb0866b3367ca4b.tar.gz
rust-c75e8d46c2fc576661c01f9eadb0866b3367ca4b.zip
core: remove the dead function fmt::argumentstr.
-rw-r--r--src/libcore/fmt/mod.rs8
-rw-r--r--src/libstd/fmt.rs2
2 files changed, 1 insertions, 9 deletions
diff --git a/src/libcore/fmt/mod.rs b/src/libcore/fmt/mod.rs
index 9b67cdd3e12..6180daebcc2 100644
--- a/src/libcore/fmt/mod.rs
+++ b/src/libcore/fmt/mod.rs
@@ -543,14 +543,6 @@ pub fn argument<'a, T>(f: extern "Rust" fn(&T, &mut Formatter) -> Result,
     }
 }
 
-/// When the compiler determines that the type of an argument *must* be a string
-/// (such as for select), then it invokes this method.
-#[doc(hidden)] #[inline]
-#[experimental = "implementation detail of the `format_args!` macro"]
-pub fn argumentstr<'a>(s: &'a &str) -> Argument<'a> {
-    argument(Show::fmt, s)
-}
-
 /// When the compiler determines that the type of an argument *must* be a uint
 /// (such as for plural), then it invokes this method.
 #[doc(hidden)] #[inline]
diff --git a/src/libstd/fmt.rs b/src/libstd/fmt.rs
index 6a2047d1cef..d0c9df9d914 100644
--- a/src/libstd/fmt.rs
+++ b/src/libstd/fmt.rs
@@ -418,7 +418,7 @@ pub use core::fmt::Error;
 pub use core::fmt::{Argument, Arguments, write, radix, Radix, RadixFmt};
 
 #[doc(hidden)]
-pub use core::fmt::{argument, argumentstr, argumentuint};
+pub use core::fmt::{argument, argumentuint};
 
 /// The format function takes a precompiled format string and a list of
 /// arguments, to return the resulting formatted string.