From 0dec1e3a91ffeaa82989c452089488c4e53130ef Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 9 Jun 2017 15:30:13 +0100 Subject: Remove unused only_buffer mode for DisplayLine::trim --- src/display_buffer.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/display_buffer.cc') 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) { -- cgit v1.2.3