Commits

Anonymous committed 35989a0 Draft

removed old M5 compiler workarounds

Comments (0)

Files changed (1)

crypto/spec/asn1/parse.ceylon

             throw Exception("corrupted stream - invalid high tag number found");
         }
         
-        // TODO: find out why this is necessary
-        value init_ = takeUntil(bytes.following(b), (Integer byte) => byte.and(#80) == 0);
-        value init = init_
+        value init = takeUntil(bytes.following(b), (Integer byte) => byte.and(#80) == 0)
             .fold(0, (Integer partial, Integer byte) => partial.or(byte.and(#7f)).leftLogicalShift(7));
         bytes.position -= 1;
         value final = bytes.get();
 
 ObjectIdentifier createObjectIdentifier(ByteBuffer bytes) {
     Integer readField(ByteBuffer bytes) {
-        // TODO: find out why this is necessary
-        value init_ = takeUntil(bytes, (Integer byte) => byte.and(#80) == 0);
-        value init = init_
+        value init = takeUntil(bytes, (Integer byte) => byte.and(#80) == 0)
             .fold(0, (Integer partial, Integer byte) => (partial + byte.and(#7f)).leftLogicalShift(7));
         bytes.position -= 1;
         return init + bytes.get().and(#7f);