Skip to content

Commit 9889d19

Browse files
committed
Remove obsolete ToCss::fmt_to_css
It hasn’t been used anywhere for a long time.
1 parent 6105cb1 commit 9889d19

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/serializer.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,6 @@ pub trait ToCss {
2424
self.to_css(&mut s).unwrap();
2525
s
2626
}
27-
28-
/// Serialize `self` in CSS syntax and return a result compatible with `std::fmt::Show`.
29-
///
30-
/// Typical usage is, for a `Foo` that implements `ToCss`:
31-
///
32-
/// ```{rust,ignore}
33-
/// use std::fmt;
34-
/// impl fmt::Show for Foo {
35-
/// #[inline] fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { self.fmt_to_css(f) }
36-
/// }
37-
/// ```
38-
///
39-
/// (This is a convenience wrapper for `to_css` and probably should not be overridden.)
40-
#[inline]
41-
fn fmt_to_css<W>(&self, dest: &mut W) -> fmt::Result where W: fmt::Write {
42-
self.to_css(dest).map_err(|_| fmt::Error)
43-
}
4427
}
4528

4629
#[inline]

0 commit comments

Comments
 (0)