Skip to content

Commit fa0ae22

Browse files
author
MarcoFalke
committed
Remove unused SER_NETWORK, SER_DISK
1 parent fae00fe commit fa0ae22

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/serialize.h

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -117,21 +117,8 @@ template<typename Stream> inline uint64_t ser_readdata64(Stream &s)
117117
}
118118

119119

120-
/////////////////////////////////////////////////////////////////
121-
//
122-
// Templates for serializing to anything that looks like a stream,
123-
// i.e. anything that supports .read(Span<std::byte>) and .write(Span<const std::byte>)
124-
//
125-
126120
class SizeComputer;
127121

128-
enum
129-
{
130-
// primary actions
131-
SER_NETWORK = (1 << 0),
132-
SER_DISK = (1 << 1),
133-
};
134-
135122
/**
136123
* Convert any argument to a reference to X, maintaining constness.
137124
*
@@ -268,6 +255,9 @@ const Out& AsBase(const In& x)
268255
BASE_SERIALIZE_METHODS(cls) \
269256
FORMATTER_METHODS_PARAMS(cls, obj, paramcls, paramobj)
270257

258+
// Templates for serializing to anything that looks like a stream,
259+
// i.e. anything that supports .read(Span<std::byte>) and .write(Span<const std::byte>)
260+
//
271261
// clang-format off
272262
#ifndef CHAR_EQUALS_INT8
273263
template <typename Stream> void Serialize(Stream&, char) = delete; // char serialization forbidden. Use uint8_t or int8_t

0 commit comments

Comments
 (0)