mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
remove dead code
This commit is contained in:
parent
c1628e70d2
commit
b1849d00e7
@ -117,55 +117,6 @@ impl <COMP: Component, A: Into<VNode<COMP>>> FromIterator<A> for VNode<COMP> {
|
||||
VNode::VList(vlist)
|
||||
}
|
||||
}
|
||||
//
|
||||
///// Iterator adaptor for displaying html.
|
||||
//pub struct HtmlAdaptor<I> {
|
||||
// it: I,
|
||||
//}
|
||||
///// Trait to convert to html adaptor.
|
||||
//pub trait ToHtmlAdaptor<I> {
|
||||
// /// Converts existing iterator to an html adaptor
|
||||
// fn html(self) -> HtmlAdaptor<I>;
|
||||
//}
|
||||
//
|
||||
//impl<I, II, T> ToHtmlAdaptor<I> for II
|
||||
//where
|
||||
// II: IntoIterator<Item = T, IntoIter = I>,
|
||||
// I: Iterator<Item = T>,
|
||||
//{
|
||||
// fn html(self) -> HtmlAdaptor<I> {
|
||||
// HtmlAdaptor {
|
||||
// it: self.into_iter(),
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//impl<'a, I, T: 'a> Iterator for HtmlAdaptor<I>
|
||||
//where
|
||||
// I: Iterator<Item = T>,
|
||||
//{
|
||||
// type Item = T;
|
||||
//
|
||||
// fn next(&mut self) -> Option<Self::Item> {
|
||||
// self.it.next()
|
||||
// }
|
||||
//}
|
||||
//
|
||||
//impl<COMP, I, T> From<HtmlAdaptor<I>> for VNode<COMP>
|
||||
//where
|
||||
// COMP: Component,
|
||||
// I: Iterator<Item = T>,
|
||||
// T: Into<VNode<COMP>>,
|
||||
//{
|
||||
// fn from(i: HtmlAdaptor<I>) -> Self {
|
||||
// let vlist = i.into_iter().fold(VList::new(), |mut acc, x| {
|
||||
// // TODO, adding a VList::with_size(usize) might improve performance via eliminating reallocation as the vec grows.
|
||||
// acc.add_child(x.into());
|
||||
// acc
|
||||
// });
|
||||
// VNode::VList(vlist)
|
||||
// }
|
||||
//}
|
||||
|
||||
impl<COMP: Component> fmt::Debug for VNode<COMP> {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user