Fix merge snafu in last commit. (Oops.)
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Apr 2013 14:41:18 +0000 (16:41 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 20 Apr 2013 14:41:18 +0000 (16:41 +0200)
stream.cpp

index ae31308..37961fa 100644 (file)
@@ -224,13 +224,6 @@ void Stream::add_data_deferred(const char *data, size_t bytes)
        } else {
                assert(encoding == Stream::STREAM_ENCODING_RAW);
        }
-
-       // Add the data itself.
-       iovec iov;
-       iov.iov_base = new char[bytes];
-       memcpy(iov.iov_base, data, bytes);
-       iov.iov_len = bytes;
-       queued_data.push_back(iov);
 }
 
 void Stream::process_queued_data()