#REFACTORING by stefan
authorStefan Vogel <sv@exept.de>
Tue, 12 Jul 2016 18:39:41 +0200
changeset 20139 526f3fe27a17
parent 20138 cd6fdc7534e4
child 20140 bba1c52b0978
#REFACTORING by stefan class: UninterpretedBytes moved: #asString to subclasses
UninterpretedBytes.st
--- a/UninterpretedBytes.st	Tue Jul 12 18:39:13 2016 +0200
+++ b/UninterpretedBytes.st	Tue Jul 12 18:39:41 2016 +0200
@@ -4041,25 +4041,6 @@
     "
 !
 
-asString
-    "speed up string conversions"
-
-    |size cls|
-
-    cls := self class.
-
-    (cls == ByteArray or:[cls == ImmutableByteArray or:[cls == ExternalBytes]]) ifTrue:[
-        size := self size.
-        ^ (String uninitializedNew:size) replaceBytesFrom:1 to:size with:self startingAt:1.
-    ].
-    ^ super asString.
-
-    "
-      #[16r41 16r42 16r43] asString
-      #[16r41 16r42 16r43] asExternalBytes asString
-    "
-!
-
 asUUID
     ^ UUID fromBytes:self
 ! !