aboutsummaryrefslogtreecommitdiffstats
path: root/Messages.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-03-25 18:24:27 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-03-25 18:38:52 +0200
commit59741ad281bd17fad2c6deba9c7238a50f1ad30e (patch)
tree6fbeb456b3fc65ab939a9dfc78b4af7eff5fabc0 /Messages.st
parent56fb27a1894768cdd66cffe5b01ee0206d5cfab0 (diff)
streams: Move to streams in the signature, kill temporary variables
Diffstat (limited to 'Messages.st')
-rw-r--r--Messages.st8
1 files changed, 4 insertions, 4 deletions
diff --git a/Messages.st b/Messages.st
index bee077e..1124f77 100644
--- a/Messages.st
+++ b/Messages.st
@@ -58,10 +58,10 @@ Object subclass: IEMessage [
aIEBase allSubclassesDo: [:each |
each elementId = type
ifTrue: [
- | enc size |
- size := each length: (data copyFrom: 2) readStream.
- enc := data copyFrom: 1 to: 1 + size.
- aMsg addIe: (each parseFrom: enc).
+ | enc size stream |
+ stream := (data copyFrom: 2) readStream.
+ size := each length: stream.
+ aMsg addIe: (each parseFrom: stream).
^ 1 + size
].
].