Skip to content

Commit

Permalink
Remove #at:, #at:put: and #errorNotKeyed messages from Bag
Browse files Browse the repository at this point in the history
Since the #at: and #at:put: are useless in the Bag class, this patch
removes them together with the #errorNotKeyed message in the Collection
class, which is now useless as it is only sent by the removed methods.

Fixes: pharo-project#4808
  • Loading branch information
leonardoce committed Oct 5, 2019
1 parent aaa1df2 commit 9f113b6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
7 changes: 0 additions & 7 deletions src/Collections-Abstract/Collection.class.st
Expand Up @@ -652,13 +652,6 @@ Collection >> errorNotFound: anObject [
NotFound signalFor: anObject
]

{ #category : #private }
Collection >> errorNotKeyed [

self error: ('Instances of {1} do not respond to keyed accessing messages.' format: {self class name})

]

{ #category : #private }
Collection >> errorSizeMismatch [
"Signal a SizeMismatch exception"
Expand Down
10 changes: 0 additions & 10 deletions src/Collections-Unordered/Bag.class.st
Expand Up @@ -92,16 +92,6 @@ Bag >> associationsDo: aBlock [
contents associationsDo: aBlock
]

{ #category : #accessing }
Bag >> at: index [
self errorNotKeyed
]

{ #category : #accessing }
Bag >> at: index put: anObject [
self errorNotKeyed
]

{ #category : #accessing }
Bag >> cumulativeCounts [
"Answer with a collection of cumulative percents covered by elements so far."
Expand Down

0 comments on commit 9f113b6

Please sign in to comment.