From 300ef1338445a73fe467a072a5d3cde0a0b39188 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20B=C3=B6rjesson?= Date: Mon, 20 Jan 2025 09:57:11 +0100 Subject: [PATCH] Remove `Iterator.empty` (now part of crytal stdlib) (#915) --- shard.yml | 2 +- src/stdlib/iterator.cr | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 src/stdlib/iterator.cr diff --git a/shard.yml b/shard.yml index 7127bd61a4..2b8c2a5735 100644 --- a/shard.yml +++ b/shard.yml @@ -37,6 +37,6 @@ development_dependencies: ameba: github: crystal-ameba/ameba -crystal: 1.13.2 +crystal: 1.15.0 license: Apache-2.0 diff --git a/src/stdlib/iterator.cr b/src/stdlib/iterator.cr deleted file mode 100644 index 624cd46d96..0000000000 --- a/src/stdlib/iterator.cr +++ /dev/null @@ -1,13 +0,0 @@ -module Iterator(T) - def self.empty - EmptyIterator(T).new - end - - private struct EmptyIterator(T) - include Iterator(T) - - def next - stop - end - end -end