Skip to content

Commit c75e8d4

Browse files
committed
core: remove the dead function fmt::argumentstr.
1 parent 83a44c7 commit c75e8d4

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

src/libcore/fmt/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -543,14 +543,6 @@ pub fn argument<'a, T>(f: extern "Rust" fn(&T, &mut Formatter) -> Result,
543543
}
544544
}
545545

546-
/// When the compiler determines that the type of an argument *must* be a string
547-
/// (such as for select), then it invokes this method.
548-
#[doc(hidden)] #[inline]
549-
#[experimental = "implementation detail of the `format_args!` macro"]
550-
pub fn argumentstr<'a>(s: &'a &str) -> Argument<'a> {
551-
argument(Show::fmt, s)
552-
}
553-
554546
/// When the compiler determines that the type of an argument *must* be a uint
555547
/// (such as for plural), then it invokes this method.
556548
#[doc(hidden)] #[inline]

src/libstd/fmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ pub use core::fmt::Error;
418418
pub use core::fmt::{Argument, Arguments, write, radix, Radix, RadixFmt};
419419

420420
#[doc(hidden)]
421-
pub use core::fmt::{argument, argumentstr, argumentuint};
421+
pub use core::fmt::{argument, argumentuint};
422422

423423
/// The format function takes a precompiled format string and a list of
424424
/// arguments, to return the resulting formatted string.

0 commit comments

Comments
 (0)