Remove unused methods from MultiSpan

This commit is contained in:
Jonathan Turner 2016-07-21 12:38:15 -07:00
parent e7c822cee2
commit f7019a4e2f

View File

@ -193,20 +193,6 @@ pub fn new() -> MultiSpan {
} }
} }
pub fn from_span(primary_span: Span) -> MultiSpan {
MultiSpan {
primary_spans: vec![primary_span],
span_labels: vec![]
}
}
pub fn from_spans(vec: Vec<Span>) -> MultiSpan {
MultiSpan {
primary_spans: vec,
span_labels: vec![]
}
}
pub fn push_span_label(&mut self, span: Span, label: String) { pub fn push_span_label(&mut self, span: Span, label: String) {
self.span_labels.push((span, label)); self.span_labels.push((span, label));
} }
@ -254,7 +240,10 @@ pub fn span_labels(&self) -> Vec<SpanLabel> {
impl From<Span> for MultiSpan { impl From<Span> for MultiSpan {
fn from(span: Span) -> MultiSpan { fn from(span: Span) -> MultiSpan {
MultiSpan::from_span(span) MultiSpan {
primary_spans: vec![span],
span_labels: vec![]
}
} }
} }