Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove nextKeyCloseTo: on the level of SoilIndexedDictionary #601

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/Soil-Core-Tests/SoilIndexedDictionaryTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -451,18 +451,17 @@ SoilIndexedDictionaryTest >> testNextAfterWithTransaction [
]

{ #category : #tests }
SoilIndexedDictionaryTest >> testNextKeyCloseToWithTransaction [
SoilIndexedDictionaryTest >> testNextAssociationAfterWithTransaction [
| tx tx2 |
tx := soil newTransaction.
tx root: dict.
dict at: 10 put: #one.
dict at: 20 put: #two.
"self assert: dict last equals: #two."
dict at: #one put: #onevalue.
dict at: #two put: #twovalue.
tx commit.
"open a second transaction ..."
tx2 := soil newTransaction.
"and test last"
self assert: (tx2 root nextKeyCloseTo: 15) value equals: 20
self assert: (tx2 root nextAssociationAfter: #one) value equals: #twovalue
]

{ #category : #tests }
Expand Down
6 changes: 0 additions & 6 deletions src/Soil-Core/SoilIndexedDictionary.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,6 @@ SoilIndexedDictionary >> nextCloseTo: aKey [
^ transaction objectWithId: (self newIterator nextCloseTo: aKey)
]

{ #category : #private }
SoilIndexedDictionary >> nextKeyCloseTo: aKey [
"Note: key will be binary key"
^ self newIterator nextKeyCloseTo: aKey
]

{ #category : #private }
SoilIndexedDictionary >> prepareNewValues [
newValues copy keysAndValuesDo: [ :key :object |
Expand Down
Loading