Skip to content

Commit a2d24ef

Browse files
committed
fuzz: remove dead code from simplicity_tx.cpp
1 parent 69c2415 commit a2d24ef

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/test/fuzz/simplicity_tx.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include <cstdio>
65
#include <span.h>
76
#include <primitives/transaction.h>
87
#include <script/sigcache.h>
@@ -65,14 +64,6 @@ void initialize_simplicity_tx()
6564
INPUT_ASSET_CONF.vchCommitment[0] = 0x0a;
6665
}
6766

68-
void write_u32(FILE *fh, uint32_t val) {
69-
unsigned char buf[4];
70-
71-
val = htole32(val);
72-
memcpy(buf, &val, 4);
73-
assert(fwrite(buf, 1, 4, fh) == 4);
74-
}
75-
7667
FUZZ_TARGET_INIT(simplicity_tx, initialize_simplicity_tx)
7768
{
7869
simplicity_err error;

0 commit comments

Comments
 (0)