summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorJörg W Mittag <github@joergwmittag.de>2021-10-03 15:16:08 +0200
committerGitHub <noreply@github.com>2021-10-03 22:16:08 +0900
commitfb03598666ddbb9f8b35eb4f599e75654ca7ca06 (patch)
tree2203bf0999e1b1b91946a78ac7d7a529be06dba5 /cont.c
parent19f9d9cf739e7fc185ef90d5da5b4b12cf902a52 (diff)
downloadruby-fb03598666ddbb9f8b35eb4f599e75654ca7ca06.tar.gz
Remove unnecessary checks in `Range#each` [Bug #18237]
In commit:7817a438eb1803e7b3358f43bd1f38479badfbdc, the implementation of `Time#succ`, which had been deprecated for 10 years, was finally removed. During that time, there was an explicit `instance_of?` check in source:range.c#L350 with a comment that the check should be removed once `Time#succ` is removed. Since `Time#succ` is now gone, this check should be removed. Note: this should be coordinated with adding a version guard to the corresponding check in ruby/spec as well.
Diffstat (limited to 'cont.c')
0 files changed, 0 insertions, 0 deletions