| Index: pkg/immi_samples/lib/sliding_window.immi
|
| diff --git a/pkg/immi_samples/lib/sliding_window.immi b/pkg/immi_samples/lib/sliding_window.immi
|
| deleted file mode 100644
|
| index f783a4168b3c4e83923e6840047046478e69dc41..0000000000000000000000000000000000000000
|
| --- a/pkg/immi_samples/lib/sliding_window.immi
|
| +++ /dev/null
|
| @@ -1,30 +0,0 @@
|
| -// Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE.md file.
|
| -
|
| -// Reusable sliding-window view of a list of nodes. The window is represented
|
| -// as a cyclic buffer so that sliding by N, where N is less than the buffer
|
| -// length, can be implemented as shifting the buffer offset by N and populating
|
| -// N items.
|
| -node SlidingWindow {
|
| - // Cyclic buffer for the sliding window of nodes.
|
| - List<Node> window;
|
| -
|
| - // Offset of the window start from the original list.
|
| - int32 startOffset;
|
| -
|
| - // Offset of the first sliding-window item in the window.
|
| - uint16 windowOffset;
|
| -
|
| - // Number of items known to be in the list.
|
| - int32 minimumCount;
|
| -
|
| - // Number of items in the list. A negative value denotes an unknown size.
|
| - int32 maximumCount;
|
| -
|
| - // Event to update the sliding-window display range.
|
| - void display(int32 start, int32 end);
|
| -
|
| - // Event to toggle an item in the window.
|
| - void toggle(int32 index);
|
| -}
|
|
|