From: Trevor Norris Date: Tue, 7 May 2013 19:38:14 +0000 (-0700) Subject: stream_wrap: remove unused arg from WriteBuffer X-Git-Tag: v0.11.2~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7f6e6b42f1a87d230c9e290725fbfb1bae85791;p=platform%2Fupstream%2Fnodejs.git stream_wrap: remove unused arg from WriteBuffer WriteBuffer was changed in the cork/uncork implementation (60ed2c54). The unused argument has been removed. --- diff --git a/src/stream_wrap.cc b/src/stream_wrap.cc index 6c5b5b2..f1d8af1 100644 --- a/src/stream_wrap.cc +++ b/src/stream_wrap.cc @@ -284,9 +284,7 @@ void StreamWrap::OnRead2(uv_pipe_t* handle, ssize_t nread, uv_buf_t buf, } -size_t StreamWrap::WriteBuffer(WriteWrap* req, - Handle val, - uv_buf_t* buf) { +size_t StreamWrap::WriteBuffer(Handle val, uv_buf_t* buf) { assert(Buffer::HasInstance(val)); // Simple non-writev case @@ -401,7 +399,7 @@ Handle StreamWrap::WriteBuffer(const Arguments& args) { req_wrap->object_->SetHiddenValue(buffer_sym, args[0]); uv_buf_t buf; - WriteBuffer(req_wrap, args[0], &buf); + WriteBuffer(args[0], &buf); int r = uv_write(&req_wrap->req_, wrap->stream_, @@ -591,7 +589,7 @@ Handle StreamWrap::Writev(const Arguments& args) { // Write buffer if (Buffer::HasInstance(chunk)) { - bytes += WriteBuffer(req_wrap, chunk, &bufs[i]); + bytes += WriteBuffer(chunk, &bufs[i]); continue; } diff --git a/src/stream_wrap.h b/src/stream_wrap.h index 84f6acc..18cbe1e 100644 --- a/src/stream_wrap.h +++ b/src/stream_wrap.h @@ -62,9 +62,7 @@ class StreamWrap : public HandleWrap { static v8::Handle WriteUcs2String(const v8::Arguments& args); protected: - static size_t WriteBuffer(WriteWrap* req, - v8::Handle val, - uv_buf_t* buf); + static size_t WriteBuffer(v8::Handle val, uv_buf_t* buf); template static size_t WriteStringImpl(char* storage, size_t storage_size,