mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
remove debugging code
This commit is contained in:
parent
2c779b2257
commit
be45a1b350
@ -23,7 +23,6 @@ String cryptoKindToString(CryptoKind kind) =>
|
|||||||
const CryptoKind bestCryptoKind = cryptoKindVLD0;
|
const CryptoKind bestCryptoKind = cryptoKindVLD0;
|
||||||
|
|
||||||
Uint8List cryptoKindToBytes(CryptoKind kind) {
|
Uint8List cryptoKindToBytes(CryptoKind kind) {
|
||||||
assert(kind == cryptoKindVLD0, 'xxx');
|
|
||||||
final b = Uint8List(4);
|
final b = Uint8List(4);
|
||||||
ByteData.sublistView(b).setUint32(0, kind);
|
ByteData.sublistView(b).setUint32(0, kind);
|
||||||
return b;
|
return b;
|
||||||
@ -35,7 +34,6 @@ CryptoKind cryptoKindFromString(String s) {
|
|||||||
}
|
}
|
||||||
final kind =
|
final kind =
|
||||||
ByteData.sublistView(Uint8List.fromList(s.codeUnits)).getUint32(0);
|
ByteData.sublistView(Uint8List.fromList(s.codeUnits)).getUint32(0);
|
||||||
assert(kind == cryptoKindVLD0, 'xxx');
|
|
||||||
return kind;
|
return kind;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user