]> git.lizzy.rs Git - rust.git/commitdiff
core: remove the dead function fmt::argumentstr.
authorEduard Burtescu <edy.burt@gmail.com>
Wed, 3 Dec 2014 20:46:09 +0000 (22:46 +0200)
committerEduard Burtescu <edy.burt@gmail.com>
Mon, 8 Dec 2014 07:14:21 +0000 (09:14 +0200)
src/libcore/fmt/mod.rs
src/libstd/fmt.rs

index 9b67cdd3e1275dd1a3dfe5eb75075a3c89115c48..6180daebcc2d4580d3d64aa52c9d516e7c48f903 100644 (file)
@@ -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]
index 6a2047d1cef30dffe4383168dd65084ac645cbd5..d0c9df9d914e764d72f526712d912f6e73188f5d 100644 (file)
 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.