]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/fmt.rs
std: Remove format_strbuf!()
[rust.git] / src / libstd / fmt.rs
index d53a0f93c9b7cdfacf8f795df251b6ca285feb58..9bca2f4248c7589270c8c61244f5beab7d6c08b9 100644 (file)
@@ -562,13 +562,6 @@ pub fn format(args: &Arguments) -> string::String{
     str::from_utf8(output.unwrap().as_slice()).unwrap().into_string()
 }
 
-/// Temporary transition utility
-pub fn format_strbuf(args: &Arguments) -> string::String {
-    let mut output = io::MemWriter::new();
-    let _ = write!(&mut output, "{}", args);
-    str::from_utf8(output.unwrap().as_slice()).unwrap().into_string()
-}
-
 #[cfg(stage0)]
 impl<T> Poly for T {
     fn fmt(&self, f: &mut Formatter) -> Result {