mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +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
ec1123aed1
commit
504ded6b0e
@@ -73,17 +73,6 @@ T Deserialize(DataStream&& ds, const P& params)
|
||||
return obj;
|
||||
}
|
||||
|
||||
template <typename T, typename P>
|
||||
void DeserializeFromFuzzingInput(FuzzBufferType buffer, T&& obj, const P& params)
|
||||
{
|
||||
try {
|
||||
SpanReader{buffer} >> 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