Skip to content

Commit 8670334

Browse files
authored
Merge pull request #2598 from ksss/drop-unnecessary-dup
Drop undocumented `#dup`
2 parents 8a03854 + 17afb50 commit 8670334

File tree

8 files changed

+0
-18
lines changed

8 files changed

+0
-18
lines changed

core/binding.rbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
class Binding
3333
def clone: () -> self
3434

35-
def dup: () -> self
36-
3735
# <!--
3836
# rdoc-file=proc.c
3937
# - binding.eval(string [, filename [,lineno]]) -> obj

core/complex.rbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,6 @@ class Complex < Numeric
411411

412412
def divmod: (Numeric) -> bot
413413

414-
def dup: () -> self
415-
416414
def eql?: (untyped) -> bool
417415

418416
# <!--

core/float.rbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,8 +462,6 @@ class Float < Numeric
462462
def divmod: (Integer | Float | Rational) -> [ Integer, Float ]
463463
| (Numeric) -> [ Numeric, Numeric ]
464464

465-
def dup: () -> self
466-
467465
# <!--
468466
# rdoc-file=numeric.c
469467
# - eql?(other) -> true or false

core/integer.rbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,6 @@ class Integer < Numeric
801801
def downto: (Numeric limit) { (Integer) -> void } -> Integer
802802
| (Numeric limit) -> ::Enumerator[Integer, self]
803803

804-
def dup: () -> self
805-
806804
def eql?: (untyped) -> bool
807805

808806
# <!--

core/method.rbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ class Method
5454
#
5555
def hash: () -> Integer
5656

57-
def dup: () -> self
58-
5957
# <!--
6058
# rdoc-file=proc.c
6159
# - meth.to_s -> string

core/proc.rbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,6 @@ class Proc
377377
def self.new: () { (?) -> untyped } -> instance
378378

379379
def clone: () -> self
380-
def dup: () -> self
381380

382381
# <!-- rdoc-file=proc.c -->
383382
# Invokes the block, setting the block's parameters to the values in *params*

core/rational.rbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,6 @@ class Rational < Numeric
244244
def divmod: (Integer | Float | Rational) -> [ Integer, Rational ]
245245
| (Numeric) -> [ Numeric, Numeric ]
246246

247-
def dup: () -> self
248-
249247
def eql?: (untyped) -> bool
250248

251249
# <!--

test/stdlib/Binding_test.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ def test_clone
1010
binding, :clone
1111
end
1212

13-
def test_dup
14-
assert_send_type '() -> Binding',
15-
binding, :dup
16-
end
17-
1813
def test_eval
1914
with_string '123' do |src|
2015
assert_send_type '(string) -> untyped',

0 commit comments

Comments
 (0)