mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
Remove unused GetType() from CBufferedFile and CAutoFile
GetType() is only called in tests, so it is unused and can be removed.
This commit is contained in:
@@ -16,7 +16,7 @@ static void FindByte(benchmark::Bench& bench)
|
||||
data[file_size-1] = 1;
|
||||
fwrite(&data, sizeof(uint8_t), file_size, file);
|
||||
rewind(file);
|
||||
CBufferedFile bf(file, /*nBufSize=*/file_size + 1, /*nRewindIn=*/file_size, 0, 0);
|
||||
CBufferedFile bf{file, /*nBufSize=*/file_size + 1, /*nRewindIn=*/file_size, 0};
|
||||
|
||||
bench.run([&] {
|
||||
bf.SetPos(0);
|
||||
|
||||
Reference in New Issue
Block a user