smalltalk
/
osmo-st-sip
Archived
1
0
Fork 0

base64: Remove method we don't use

Avoid porting issue with the MIMERWStream and just kill the method
This commit is contained in:
Holger Hans Peter Freyther 2015-07-24 11:53:03 +02:00
parent 2df9f74284
commit 2abc6e82e5
1 changed files with 0 additions and 13 deletions

View File

@ -96,19 +96,6 @@ MimeConverter subclass: Base64LikeConverter [
ToCharTable at: 64 put: $/
]
Base64LikeConverter class >> mimeDecodeToBytes: aStream [
"Return a RWBinaryOrTextStream of the original ByteArray. aStream has only 65 innocuous character values. aStream is not binary. (See class comment). 4 bytes in aStream goes to 3 bytes in output."
| me |
aStream position: 0.
me := self new mimeStream: aStream.
me dataStream: (MIMERWStream
on: (ByteArray new: aStream size * 3 // 4)).
me mimeDecodeToByteArray.
me dataStream position: 0.
^me dataStream
]
Base64LikeConverter class >> mimeEncode: aStream [
"Return a ReadWriteStream of characters. The data of aStream is encoded as 65 innocuous characters. (See class comment). 3 bytes in aStream goes to 4 bytes in output."