diff options
| author | Kevin Mehall <km@kevinmehall.net> | 2017-07-02 13:46:38 -0700 |
|---|---|---|
| committer | Kevin Mehall <km@kevinmehall.net> | 2017-07-06 18:49:32 -0700 |
| commit | 17bd76a5169df158a750fdf63cf35b3fbd33c28e (patch) | |
| tree | 2fab20e5bbdef115781698f2d1b0aced4144129b /src/librustc_errors/styled_buffer.rs | |
| parent | d2ebb12a1d6f6599f9171a65a2160e523b53ccdf (diff) | |
| download | rust-17bd76a5169df158a750fdf63cf35b3fbd33c28e.tar.gz rust-17bd76a5169df158a750fdf63cf35b3fbd33c28e.zip | |
Remove unused code from librustc_errors
Diffstat (limited to 'src/librustc_errors/styled_buffer.rs')
| -rw-r--r-- | src/librustc_errors/styled_buffer.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/librustc_errors/styled_buffer.rs b/src/librustc_errors/styled_buffer.rs index dfc7c64de01..f1f2e6c55e9 100644 --- a/src/librustc_errors/styled_buffer.rs +++ b/src/librustc_errors/styled_buffer.rs @@ -111,12 +111,6 @@ impl StyledBuffer { } } - pub fn set_style(&mut self, line: usize, col: usize, style: Style) { - if self.styles.len() > line && self.styles[line].len() > col { - self.styles[line][col] = style; - } - } - pub fn prepend(&mut self, line: usize, string: &str, style: Style) { self.ensure_lines(line); let string_len = string.len(); |
