Browse Source

Code cleanup

devmil 4 năm trước cách đây
mục cha
commit
7d6d22bd1c
1 tập tin đã thay đổi với 0 bổ sung4 xóa
  1. 0 4
      lib/buffer/buffer_reflow.dart

+ 0 - 4
lib/buffer/buffer_reflow.dart

@@ -151,10 +151,6 @@ class BufferReflow {
     // than earlier so that it's a single O(n) pass through the buffer, instead of O(n^2) from many
     // costly calls to CircularList.splice.
     if (toInsert.length > 0) {
-      // Record buffer insert events and then play them back backwards so that the indexes are
-      // correct
-      List<int> insertEvents = [];
-
       // Record original lines so they don't get overridden when we rearrange the list
       List<BufferLine> originalLines = List<BufferLine>.from(_buffer.lines);
       _buffer.lines.addAll(