Skip to content

Commit

Permalink
[PreSmalltalks] Revert introduction of useless String>>syms
Browse files Browse the repository at this point in the history
  • Loading branch information
shingarov committed Nov 21, 2024
1 parent 16b2c0b commit 504ef27
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/PreSmalltalks-Substitutions/String.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,3 @@ String >> substa: f [
String >> substf: f [
^(f value: self) subSymbol: self
]

{ #category : #'*PreSmalltalks-Substitutions' }
String >> syms [
^{self}
]
5 changes: 0 additions & 5 deletions src/PreSmalltalks-Tests/SubableTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,6 @@ SubableTest >> testStringSubstf [
self assert: ('a' substf: [:_|nil]) equals: 'a'
]

{ #category : #'tests - string' }
SubableTest >> testStringSyms [
self assert: ('a' syms includes: 'a')
]

{ #category : #'tests - string' }
SubableTest >> testStringsSubsta [
self assert: ({'big pig' . 'can dig'} substa: #asCamelCase) equals: {'BigPig' . 'CanDig'}
Expand Down

0 comments on commit 504ef27

Please sign in to comment.