Skip to content

Commit 1f6dc0d

Browse files
authored
Merge pull request #687 from evoskuil/master
Remove dead code.
2 parents 911b65b + d511674 commit 1f6dc0d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/net/socket.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,9 +431,6 @@ void socket::do_rpc_read(boost_code ec, size_t total, const read_rpc::ptr& in,
431431
return;
432432
}
433433

434-
if (is_null(in->value.buffer))
435-
in->value.buffer = to_shared<http::flat_buffer>();
436-
437434
get_transport().async_receive(in->value.buffer->prepare(size),
438435
std::bind(&socket::handle_rpc_read,
439436
shared_from_this(), _1, _2, total, in, handler));

0 commit comments

Comments
 (0)