Permalink
Browse files

Remove exist_key and delete_key: they are not specced and not used in…

… core
  • Loading branch information...
1 parent 39024d8 commit 9a63eade18274bf998fb46c9f6cc5126a6757712 @lizmat lizmat committed Sep 1, 2013
Showing with 0 additions and 6 deletions.
  1. +0 −1 src/core/Bag.pm
  2. +0 −2 src/core/KeyBag.pm
  3. +0 −2 src/core/KeySet.pm
  4. +0 −1 src/core/Set.pm
View
@@ -65,7 +65,6 @@ my class Bag is Iterable does Associative does Baggy {
method KeyBag { KeyBag.new-from-pairs(self.hash) }
method at_key($k) { +(%!elems{$k} // 0) }
- method exists_key($k) { self.exists($k) }
# Constructor
method new(*@args --> Bag) {
View
@@ -19,8 +19,6 @@ my class KeyBag does Associative does Baggy {
Proxy.new(FETCH => { %!elems.exists($k) ?? %!elems{$k} !! 0 },
STORE => -> $, $value { if $value > 0 { %!elems{$k} = $value } else { %!elems.delete($k) }});
}
- method exists_key($k) { self.exists($k) }
- method delete_key($k) { %!elems.delete($k) }
# Constructor
method new(*@args --> KeyBag) {
View
@@ -14,8 +14,6 @@ my class KeySet is Iterable does Associative {
Proxy.new(FETCH => { %!elems.exists($k) ?? True !! False },
STORE => -> $, $value { if $value { %!elems{$k} = True } else { %!elems.delete($k) }});
}
- method exists_key($k) { self.exists($k) }
- method delete_key($k) { %!elems.delete($k) }
# Constructor
method new(*@args --> KeySet) {
View
@@ -187,7 +187,6 @@ my class Set is Iterable does Associative {
method KeyBag { KeyBag.new(self.keys) }
method at_key($k) { ?(%!elems{$k} // False) }
- method exists_key($k) { self.exists($k) }
# Constructor
method new(*@args --> Set) {

0 comments on commit 9a63ead

Please sign in to comment.