Removing unnecessary methods.
This commit is contained in:
parent
e43b375a6b
commit
1e06d16801
@ -1,9 +0,0 @@
|
||||
accessing
|
||||
ifEmpty: aBlock
|
||||
"Evaluate the given block, answering its value if the receiver is empty, otherwise answer the receiver."
|
||||
|
||||
"Note that the fact that this method returns its receiver in case the receiver is not empty allows one to write expressions like the following ones: self classifyMethodAs: (myProtocol ifEmpty: ['As yet unclassified'])"
|
||||
|
||||
^ self isEmpty
|
||||
ifTrue: [ aBlock value ]
|
||||
ifFalse: [ self ]
|
@ -1,5 +0,0 @@
|
||||
accessing
|
||||
isEmpty
|
||||
"Answer whether the receiver contains any elements."
|
||||
|
||||
^self size = 0
|
Loading…
Reference in New Issue
Block a user