diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-06-09 15:30:13 +0100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-06-09 15:30:13 +0100 |
| commit | 0dec1e3a91ffeaa82989c452089488c4e53130ef (patch) | |
| tree | 2db893055cf99dc50149f5cf1e1087a0a91eb001 /src/display_buffer.cc | |
| parent | 7b9d8d39b18fd7b3de8c5312cb986a656529ddfd (diff) | |
Remove unused only_buffer mode for DisplayLine::trim
Diffstat (limited to 'src/display_buffer.cc')
| -rw-r--r-- | src/display_buffer.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/display_buffer.cc b/src/display_buffer.cc index c4e2d366..4b025fc9 100644 --- a/src/display_buffer.cc +++ b/src/display_buffer.cc @@ -168,16 +168,10 @@ ColumnCount DisplayLine::length() const return len; } -void DisplayLine::trim(ColumnCount first_col, ColumnCount col_count, bool only_buffer) +void DisplayLine::trim(ColumnCount first_col, ColumnCount col_count) { for (auto it = begin(); first_col > 0 and it != end(); ) { - if (only_buffer and not it->has_buffer_range()) - { - ++it; - continue; - } - auto len = it->length(); if (len <= first_col) { |
