From dce17292e1f62ca692aa36ed3eaf5bfb09e7ab69 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sat, 21 Apr 2012 19:36:35 +0200 Subject: 'own' command replaced by synchronous call The commands was a vestige of the removed 'durable sockets' feature Signed-off-by: Martin Sustrik --- src/object.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'src/object.cpp') diff --git a/src/object.cpp b/src/object.cpp index 4f04fe4..dac4b6c 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -77,11 +77,6 @@ void xs::object_t::process_command (command_t &cmd_) process_seqnum (); break; - case command_t::own: - process_own (cmd_.args.own.object); - process_seqnum (); - break; - case command_t::attach: process_attach (cmd_.args.attach.engine); process_seqnum (); @@ -186,19 +181,6 @@ void xs::object_t::send_plug (own_t *destination_, bool inc_seqnum_) send_command (cmd); } -void xs::object_t::send_own (own_t *destination_, own_t *object_) -{ - destination_->inc_seqnum (); - command_t cmd; -#if defined XS_MAKE_VALGRIND_HAPPY - memset (&cmd, 0, sizeof (cmd)); -#endif - cmd.destination = destination_; - cmd.type = command_t::own; - cmd.args.own.object = object_; - send_command (cmd); -} - void xs::object_t::send_attach (session_base_t *destination_, i_engine *engine_, bool inc_seqnum_) { @@ -369,11 +351,6 @@ void xs::object_t::process_plug () xs_assert (false); } -void xs::object_t::process_own (own_t *object_) -{ - xs_assert (false); -} - void xs::object_t::process_attach (i_engine *engine_) { xs_assert (false); -- cgit v1.2.3