aboutsummaryrefslogtreecommitdiff
path: root/src/streams.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-01-04 12:20:33 +0100
committerMarcoFalke <falke.marco@gmail.com>2019-01-04 12:20:35 +0100
commit5b6b371c777a6d6a06d50e43ac9cabfea1f64dfa (patch)
treee8a3ad295c2b236ee64017c8535bb53b5e7f3cfe /src/streams.h
parent9c64278e1a723bdc34598d0d83e56f1e74ea39bb (diff)
parent75778a0724b73a0cecd99bd2e1c49fbfdb90e194 (diff)
downloadbitcoin-5b6b371c777a6d6a06d50e43ac9cabfea1f64dfa.tar.xz
Merge #14855: test: Correct ineffectual WithOrVersion from transactions_tests
75778a0724 test: Correct ineffectual WithOrVersion from transactions_tests (Ben Woosley) Pull request description: `WithOrVersion` uses `|` to combine the versions, and `|` with 0 is a no-op. NicolasDorier / sipa do you recall why the version is being overridden here? Introduced in ab48c5e72156b34300db4a6521cb3c9969be3937 Last updated 81e3228fcb33e8ed32d8b9fbe917444ba080073a Tree-SHA512: 2aea925497bab2da973f17752410a6759d67181a57c3b12a685d184fbfcca2984c45b702ab0bd641d75e086696a0424f1bf77c5578ca765d6882dc03b42d5f9a
Diffstat (limited to 'src/streams.h')
-rw-r--r--src/streams.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/streams.h b/src/streams.h
index d5565fe61f..8010a061c7 100644
--- a/src/streams.h
+++ b/src/streams.h
@@ -64,12 +64,6 @@ public:
size_t size() const { return stream->size(); }
};
-template<typename S>
-OverrideStream<S> WithOrVersion(S* s, int nVersionFlag)
-{
- return OverrideStream<S>(s, s->GetType(), s->GetVersion() | nVersionFlag);
-}
-
/* Minimal stream for overwriting and/or appending to an existing byte vector
*
* The referenced vector will grow as necessary