Skip to content

Commit

Permalink
Remove underlyingStream
Browse files Browse the repository at this point in the history
  • Loading branch information
noha committed Nov 16, 2023
1 parent 1564a0b commit ed9d5c5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Soil-Core/SoilJournalFragmentFile.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ SoilJournalFragmentFile >> transactionJournals [
self stream position: self dataPosition.
transactionJournals := OrderedDictionary new.
[ stream atEnd ] whileFalse: [
entry := SoilJournalEntry readFrom: stream underlyingStream.
entry := SoilJournalEntry readFrom: stream.
entry isTransactionEntry ifTrue: [
(transactionJournals
at: entry transactionId
Expand Down
13 changes: 8 additions & 5 deletions src/Soil-File/SoilLockableStream.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ SoilLockableStream >> next: anInteger [
^ fileStream next: anInteger
]

{ #category : #'reading - basic' }
SoilLockableStream >> nextLengthEncodedInteger [
| value |
value := self next.
(value < 128) ifTrue: [ ^ value ].
^ (self nextLengthEncodedInteger bitShift: 7) bitOr: (value bitAnd: 127)
]

{ #category : #writing }
SoilLockableStream >> nextPut: anInteger [
fileStream nextPut: anInteger
Expand Down Expand Up @@ -149,11 +157,6 @@ SoilLockableStream >> size [
^ fileStream size
]

{ #category : #'as yet unclassified' }
SoilLockableStream >> underlyingStream [
^ fileStream
]

{ #category : #locking }
SoilLockableStream >> unlockFrom: from to: to for: lockContext [

Expand Down

0 comments on commit ed9d5c5

Please sign in to comment.