[squeak-dev] The Trunk: System-nice.681.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jul 26 21:42:57 UTC 2014


Nicolas Cellier uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-nice.681.mcz

==================== Summary ====================

Name: System-nice.681
Author: nice
Time: 26 July 2014, 11:41:38.894 pm
UUID: 232c6d1f-5bf4-45e4-86c7-843c8285b0fa
Ancestors: System-nice.680

Remove one useless send of reset.
By the way, this is twice the same method... TODO remove the InternalTranslator version.

=============== Diff against System-nice.680 ===============

Item was changed:
  ----- Method: InternalTranslator class>>loadForLocaleIsoString:fromGzippedMimeLiteral: (in category 'file-services') -----
  loadForLocaleIsoString: localeString fromGzippedMimeLiteral: mimeString 
  	"merge the translation from the mime literal."
  	| stream localeID translator gs rbStream s currentPlatform |
  	s := Base64MimeConverter mimeDecodeToBytes: mimeString readStream.
- 	s reset.
  	gs := GZipReadStream on: s.
  	rbStream := MultiByteBinaryOrTextStream with: gs contents asString.
  	rbStream converter: UTF8TextConverter new.
  	rbStream reset.
  	localeID := LocaleID isoString: localeString.
  	currentPlatform := Locale currentPlatform.
  	[Locale
  		currentPlatform: (Locale localeID: localeID).
  	stream := ReadStream on: rbStream contents]
  		ensure: [Locale currentPlatform: currentPlatform].
  	translator := self localeID: localeID.
  	translator loadFromStream: stream.
  	LanguageEnvironment resetKnownEnvironments!

Item was changed:
  ----- Method: NaturalLanguageTranslator class>>loadForLocaleIsoString:fromGzippedMimeLiteral: (in category 'file-services') -----
  loadForLocaleIsoString: localeString fromGzippedMimeLiteral: mimeString 
  	"merge the translation from the mime literal."
  	| stream localeID translator gs rbStream s currentPlatform |
  	s := Base64MimeConverter mimeDecodeToBytes: mimeString readStream.
- 	s reset.
  	gs := GZipReadStream on: s.
  	rbStream := MultiByteBinaryOrTextStream with: gs contents asString.
  	rbStream converter: UTF8TextConverter new.
  	rbStream reset.
  	localeID := LocaleID isoString: localeString.
  	currentPlatform := Locale currentPlatform.
  	[Locale
  		currentPlatform: (Locale localeID: localeID).
  	stream := ReadStream on: rbStream contents]
  		ensure: [Locale currentPlatform: currentPlatform].
  	translator := self localeID: localeID.
  	translator loadFromStream: stream.
  	LanguageEnvironment resetKnownEnvironments!



More information about the Squeak-dev mailing list