diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-07-24 15:18:47 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-24 15:18:47 +0530 |
| commit | cc620d8819dfaceb26e961cc189aa4e36abf3352 (patch) | |
| tree | 362ca5bd3838bd05e77438f2bce8a3e1e495306b /src | |
| parent | 2c50f4e484d1c871538ee99032ec2986177b8062 (diff) | |
| parent | f7019a4e2f80577d38ec35fcebd64d5970b15f78 (diff) | |
| download | rust-cc620d8819dfaceb26e961cc189aa4e36abf3352.tar.gz rust-cc620d8819dfaceb26e961cc189aa4e36abf3352.zip | |
Rollup merge of #34965 - jonathandturner:multispan_cleanup, 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/libsyntax_pos/lib.rs | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/libsyntax_pos/lib.rs b/src/libsyntax_pos/lib.rs index 7dfe19452a2..c96be8fec2b 100644 --- a/src/libsyntax_pos/lib.rs +++ b/src/libsyntax_pos/lib.rs @@ -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)); } @@ -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![] + } } } |
