From 1e06d168015d038d5c09a8e34f093b5f8e1dcf63 Mon Sep 17 00:00:00 2001 From: ruidajo Date: Wed, 20 Apr 2022 14:13:02 -0500 Subject: [PATCH] Removing unnecessary methods. --- .../TweetsCollection.class/instance/ifEmpty..st | 9 --------- .../TweetsCollection.class/instance/isEmpty.st | 5 ----- 2 files changed, 14 deletions(-) delete mode 100644 Socialmetrica.package/TweetsCollection.class/instance/ifEmpty..st delete mode 100644 Socialmetrica.package/TweetsCollection.class/instance/isEmpty.st diff --git a/Socialmetrica.package/TweetsCollection.class/instance/ifEmpty..st b/Socialmetrica.package/TweetsCollection.class/instance/ifEmpty..st deleted file mode 100644 index 7b535ff..0000000 --- a/Socialmetrica.package/TweetsCollection.class/instance/ifEmpty..st +++ /dev/null @@ -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 ] \ No newline at end of file diff --git a/Socialmetrica.package/TweetsCollection.class/instance/isEmpty.st b/Socialmetrica.package/TweetsCollection.class/instance/isEmpty.st deleted file mode 100644 index b98b686..0000000 --- a/Socialmetrica.package/TweetsCollection.class/instance/isEmpty.st +++ /dev/null @@ -1,5 +0,0 @@ -accessing -isEmpty - "Answer whether the receiver contains any elements." - - ^self size = 0 \ No newline at end of file