Skip to content

Commit fa8d227

Browse files
author
MarcoFalke
committed
doc: Remove comments that just repeat what the code does
No need to artificially bloat the code and waste space.
1 parent fafe2ca commit fa8d227

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/hash.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ class CHashWriter : public HashWriter
160160

161161
template<typename T>
162162
CHashWriter& operator<<(const T& obj) {
163-
// Serialize to this stream
164163
::Serialize(*this, obj);
165164
return (*this);
166165
}
@@ -228,7 +227,6 @@ class CHashVerifier : public CHashWriter
228227
template<typename T>
229228
CHashVerifier<Source>& operator>>(T&& obj)
230229
{
231-
// Unserialize from this stream
232230
::Unserialize(*this, obj);
233231
return (*this);
234232
}

src/streams.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,13 @@ class OverrideStream
5858
template<typename T>
5959
OverrideStream<Stream>& operator<<(const T& obj)
6060
{
61-
// Serialize to this stream
6261
::Serialize(*this, obj);
6362
return (*this);
6463
}
6564

6665
template<typename T>
6766
OverrideStream<Stream>& operator>>(T&& obj)
6867
{
69-
// Unserialize from this stream
7068
::Unserialize(*this, obj);
7169
return (*this);
7270
}
@@ -131,7 +129,6 @@ class CVectorWriter
131129
template<typename T>
132130
CVectorWriter& operator<<(const T& obj)
133131
{
134-
// Serialize to this stream
135132
::Serialize(*this, obj);
136133
return (*this);
137134
}
@@ -172,7 +169,6 @@ class SpanReader
172169
template<typename T>
173170
SpanReader& operator>>(T&& obj)
174171
{
175-
// Unserialize from this stream
176172
::Unserialize(*this, obj);
177173
return (*this);
178174
}
@@ -317,15 +313,13 @@ class DataStream
317313
template<typename T>
318314
DataStream& operator<<(const T& obj)
319315
{
320-
// Serialize to this stream
321316
::Serialize(*this, obj);
322317
return (*this);
323318
}
324319

325320
template<typename T>
326321
DataStream& operator>>(T&& obj)
327322
{
328-
// Unserialize from this stream
329323
::Unserialize(*this, obj);
330324
return (*this);
331325
}
@@ -741,7 +735,6 @@ class CBufferedFile
741735

742736
template<typename T>
743737
CBufferedFile& operator>>(T&& obj) {
744-
// Unserialize from this stream
745738
::Unserialize(*this, obj);
746739
return (*this);
747740
}

0 commit comments

Comments
 (0)