aboutsummaryrefslogtreecommitdiff
path: root/src/serialize.h
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-09-12 12:06:55 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-11-30 11:28:17 +0100
commitfa0ae22ff2c608c94b26c85040c4a1c7e9f7cf90 (patch)
treee69abc16c5130e15a2d007b77cb4b5bf0143183e /src/serialize.h
parentfae00fe9c25af80024adda33d9077962964269ea (diff)
downloadbitcoin-fa0ae22ff2c608c94b26c85040c4a1c7e9f7cf90.tar.xz
Remove unused SER_NETWORK, SER_DISK
Diffstat (limited to 'src/serialize.h')
-rw-r--r--src/serialize.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/serialize.h b/src/serialize.h
index 78df97e61d..263b781f21 100644
--- a/src/serialize.h
+++ b/src/serialize.h
@@ -117,21 +117,8 @@ template<typename Stream> inline uint64_t ser_readdata64(Stream &s)
}
-/////////////////////////////////////////////////////////////////
-//
-// Templates for serializing to anything that looks like a stream,
-// i.e. anything that supports .read(Span<std::byte>) and .write(Span<const std::byte>)
-//
-
class SizeComputer;
-enum
-{
- // primary actions
- SER_NETWORK = (1 << 0),
- SER_DISK = (1 << 1),
-};
-
/**
* Convert any argument to a reference to X, maintaining constness.
*
@@ -268,6 +255,9 @@ const Out& AsBase(const In& x)
BASE_SERIALIZE_METHODS(cls) \
FORMATTER_METHODS_PARAMS(cls, obj, paramcls, paramobj)
+// Templates for serializing to anything that looks like a stream,
+// i.e. anything that supports .read(Span<std::byte>) and .write(Span<const std::byte>)
+//
// clang-format off
#ifndef CHAR_EQUALS_INT8
template <typename Stream> void Serialize(Stream&, char) = delete; // char serialization forbidden. Use uint8_t or int8_t