From ea5679a4bc32a67fcf4c5967ff47877d0eefccb9 Mon Sep 17 00:00:00 2001 From: Vlad Sumin Date: Thu, 9 Jan 2025 01:23:08 +0200 Subject: [PATCH] remove unused code --- packages/espressocash_app/lib/utils/chunks.dart | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 packages/espressocash_app/lib/utils/chunks.dart diff --git a/packages/espressocash_app/lib/utils/chunks.dart b/packages/espressocash_app/lib/utils/chunks.dart deleted file mode 100644 index f6eed24d2..000000000 --- a/packages/espressocash_app/lib/utils/chunks.dart +++ /dev/null @@ -1,17 +0,0 @@ -extension IterableX on Iterable { - Iterable> chunks(int size) sync* { - if (isEmpty) return; - - List chunk = []; - for (final element in this) { - chunk.add(element); - if (chunk.length == size) { - yield chunk; - chunk = []; - } - } - if (chunk.isNotEmpty) { - yield chunk; - } - } -}