diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-05-17 13:21:23 +0200 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2021-05-24 16:04:44 -0700 |
commit | e40224d0c77674348bf0a518365208bc118f39a4 (patch) | |
tree | 34eb2a2d4d304b19dc48c418dc56bfaa3c130d20 /src/test/fuzz/float.cpp | |
parent | b295395664bd37e26d168c329f238237b34aef8c (diff) | |
download | bitcoin-e40224d0c77674348bf0a518365208bc118f39a4.tar.xz |
Remove unused float serialization
Diffstat (limited to 'src/test/fuzz/float.cpp')
-rw-r--r-- | src/test/fuzz/float.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/fuzz/float.cpp b/src/test/fuzz/float.cpp index d18a87d177..f806c82d14 100644 --- a/src/test/fuzz/float.cpp +++ b/src/test/fuzz/float.cpp @@ -27,16 +27,4 @@ FUZZ_TARGET(float) stream >> d_deserialized; assert(d == d_deserialized); } - - { - const float f = fuzzed_data_provider.ConsumeFloatingPoint<float>(); - (void)memusage::DynamicUsage(f); - assert(ser_uint32_to_float(ser_float_to_uint32(f)) == f); - - CDataStream stream(SER_NETWORK, INIT_PROTO_VERSION); - stream << f; - float f_deserialized; - stream >> f_deserialized; - assert(f == f_deserialized); - } } |