Removed the FdOutStream::writeBytes() implementation as the same
method of the parent class seems to do the work better. The function
can flush buffered data even if there were only a few bytes in the
buffer. That results in sending packets with just 1 byte of data,
while encoding data with 32-bit Hextile.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@318 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rdr/FdOutStream.cxx b/rdr/FdOutStream.cxx
index 6795fc8..a9075cc 100644
--- a/rdr/FdOutStream.cxx
+++ b/rdr/FdOutStream.cxx
@@ -39,8 +39,7 @@
 
 using namespace rdr;
 
-enum { DEFAULT_BUF_SIZE = 16384,
-       MIN_BULK_SIZE = 1024 };
+enum { DEFAULT_BUF_SIZE = 16384 };
 
 FdOutStream::FdOutStream(int fd_, int timeoutms_, int bufSize_)
   : fd(fd_), timeoutms(timeoutms_),
@@ -63,25 +62,6 @@
   timeoutms = timeoutms_;
 }
 
-void FdOutStream::writeBytes(const void* data, int length)
-{
-  if (length < MIN_BULK_SIZE) {
-    OutStream::writeBytes(data, length);
-    return;
-  }
-
-  const U8* dataPtr = (const U8*)data;
-
-  flush();
-
-  while (length > 0) {
-    int n = writeWithTimeout(dataPtr, length);
-    length -= n;
-    dataPtr += n;
-    offset += n;
-  }
-}
-
 int FdOutStream::length()
 {
   return offset + ptr - start;