aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/rdr/OutStream.h8
-rw-r--r--common/rfb/CMsgWriter.cxx2
2 files changed, 1 insertions, 9 deletions
diff --git a/common/rdr/OutStream.h b/common/rdr/OutStream.h
index 0f60ccc1..6e9069c6 100644
--- a/common/rdr/OutStream.h
+++ b/common/rdr/OutStream.h
@@ -83,14 +83,6 @@ namespace rdr {
while (bytes-- > 0) writeU8(0);
}
- inline void skip(size_t bytes) {
- while (bytes > 0) {
- size_t n = check(1, bytes);
- ptr += n;
- bytes -= n;
- }
- }
-
// writeBytes() writes an exact number of bytes.
void writeBytes(const void* data, size_t length) {
diff --git a/common/rfb/CMsgWriter.cxx b/common/rfb/CMsgWriter.cxx
index 3180391b..c452f5eb 100644
--- a/common/rfb/CMsgWriter.cxx
+++ b/common/rfb/CMsgWriter.cxx
@@ -61,7 +61,7 @@ void CMsgWriter::writeSetEncodings(const std::list<rdr::U32> encodings)
{
std::list<rdr::U32>::const_iterator iter;
startMsg(msgTypeSetEncodings);
- os->skip(1);
+ os->pad(1);
os->writeU16(encodings.size());
for (iter = encodings.begin(); iter != encodings.end(); ++iter)
os->writeU32(*iter);