diff --git a/src/core/Any.pm b/src/core/Any.pm index d7d3eb4a28a..2d9868b6312 100644 --- a/src/core/Any.pm +++ b/src/core/Any.pm @@ -14,10 +14,6 @@ my class Any { # declared in BOOTSTRAP # primitives method infinite() { Nil } - method exists (Any:U: $key) { # is DEPRECATED doesn't work in settings - DEPRECATED("the :exists adverb"); - False; - } method exists_key($key) { False } proto method exists_pos(|) { * } diff --git a/src/core/Baggy.pm b/src/core/Baggy.pm index 5d2801a388f..a913b9ca491 100644 --- a/src/core/Baggy.pm +++ b/src/core/Baggy.pm @@ -9,10 +9,6 @@ my role Baggy does QuantHash { method kxxv { %!elems.values.map( {.key xx .value} ) } method elems(--> Int) { %!elems.elems } method total(--> Int) { [+] self.values } - method exists ($k --> Bool) { # is DEPRECATED doesn't work in settings - DEPRECATED('the :exists adverb with postcircumfix:<{ }>'); - self.exists_key($k); - } method exists_key($k --> Bool) { %!elems.exists_key($k.WHICH); } diff --git a/src/core/Capture.pm b/src/core/Capture.pm index 4f98bd2cae7..14a747d4a13 100644 --- a/src/core/Capture.pm +++ b/src/core/Capture.pm @@ -46,10 +46,6 @@ my class Capture { # declared in BOOTSTRAP $enum; } - method exists (Capture:D: $key ) { # is DEPRECATED doesn't work in settings - DEPRECATED("the :exists adverb"); - self.exists_key($key); - } method exists_key(Capture:D: $key ) { nqp::p6bool(nqp::existskey($!hash, nqp::unbox_s($key.Str))); } diff --git a/src/core/EnumMap.pm b/src/core/EnumMap.pm index c39004ffcb2..209845b2774 100644 --- a/src/core/EnumMap.pm +++ b/src/core/EnumMap.pm @@ -27,16 +27,6 @@ my class EnumMap does Associative { # declared in BOOTSTRAP so self.keys.any.match($topic); } - proto method exists(|) {*} - multi method exists (EnumMap:U:) { # is DEPRECATED doesn't work in settings - DEPRECATED('the :exists adverb with postcircumfix:<{ }>'); - self.exists_key; - } - multi method exists (EnumMap:D: \key) { # is DEPRECATED doesn't work in settings - DEPRECATED('the :exists adverb with postcircumfix:<{ }>'); - self.exists_key(key); - } - proto method exists_key(|) {*} multi method exists_key(EnumMap:U:) { False } multi method exists_key(EnumMap:D: Str:D \key) { diff --git a/src/core/Hash.pm b/src/core/Hash.pm index ecd2c089873..3948ed35a5e 100644 --- a/src/core/Hash.pm +++ b/src/core/Hash.pm @@ -401,10 +401,6 @@ my class Hash { # declared in BOOTSTRAP nqp::unbox_s($key_which), bindval) } - method exists (TKey \key) { # is DEPRECATED doesn't work in settings - DEPRECATED('the :exists adverb with postcircumfix:<{ }>'); - self.exists_key(key); - } method exists_key(TKey \key) { nqp::defined($!keys) ?? nqp::p6bool(nqp::existskey($!keys, nqp::unbox_s(key.WHICH))) diff --git a/src/core/List.pm b/src/core/List.pm index fe5e2c8a8b3..86a8cd0b17b 100644 --- a/src/core/List.pm +++ b/src/core/List.pm @@ -106,10 +106,6 @@ my class List does Positional { # declared in BOOTSTRAP $!nextiter.defined ?? Inf !! $n } - method exists (\pos) { # is DEPRECATED doesn't work in settings - DEPRECATED("the :exists adverb with postcircumfix:<[ ]>"); - self.exists_pos(pos); - } method exists_pos(\pos) { return False if !self.DEFINITE || pos < 0; self.gimme(pos + 1); diff --git a/src/core/Setty.pm b/src/core/Setty.pm index b410a114b93..5bd2ddd8f78 100644 --- a/src/core/Setty.pm +++ b/src/core/Setty.pm @@ -10,10 +10,6 @@ my role Setty does QuantHash { method total(--> Int) { %!elems.elems } method minpairs(--> List) { self.pairs } method maxpairs(--> List) { self.pairs } - method exists ($k --> Bool) { # is DEPRECATED doesn't work in settings - DEPRECATED('the :exists adverb with postcircumfix:<{ }>'); - self.exists_key($k); - } method exists_key($k --> Bool) { so ( %!elems && nqp::existskey(%!elems, nqp::unbox_s($k.WHICH)) ); }