mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-14 23:37:51 +02:00
fuzz: Remove unused DeserializeFromFuzzingInput params overload
This overload has been unused since it was added infac81affb5. Github-Pull: #35679 Rebased-From:efa7f8c143
This commit is contained in:
committed by
fanquake
parent
ea96270943
commit
945aa9866e
@@ -71,18 +71,6 @@ T Deserialize(DataStream&& ds, const P& params)
|
||||
return obj;
|
||||
}
|
||||
|
||||
template <typename T, typename P>
|
||||
void DeserializeFromFuzzingInput(FuzzBufferType buffer, T&& obj, const P& params)
|
||||
{
|
||||
DataStream ds{buffer};
|
||||
try {
|
||||
ds >> params(obj);
|
||||
} catch (const std::ios_base::failure&) {
|
||||
throw invalid_fuzzing_input_exception();
|
||||
}
|
||||
assert(buffer.empty() || !Serialize(obj, params).empty());
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
DataStream Serialize(const T& obj)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user