Skip to content

Commit

Permalink
Rollup merge of rust-lang#34965 - jonathandturner:multispan_cleanup, …
Browse files Browse the repository at this point in the history
…r=sanxiyn

Remove unused methods from MultiSpan

Removed a couple of unused methods from MultiSpan.  I thought about batching this with some other changes but wasn't sure when I'd get around to them, so PR for a tiny fix instead.

This can be rollup'd.
  • Loading branch information
Manishearth authored Jul 24, 2016
2 parents 2c50f4e + f7019a4 commit cc620d8
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/libsyntax_pos/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,20 +193,6 @@ impl 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) {
self.span_labels.push((span, label));
}
Expand Down Expand Up @@ -254,7 +240,10 @@ impl MultiSpan {

impl From<Span> for MultiSpan {
fn from(span: Span) -> MultiSpan {
MultiSpan::from_span(span)
MultiSpan {
primary_spans: vec![span],
span_labels: vec![]
}
}
}

Expand Down

0 comments on commit cc620d8

Please sign in to comment.