Commit f0fe5cec authored by Niels Möller's avatar Niels Möller
Browse files

* src/io.h (lsh_fd): Deleted old hanged_up attribute.

* src/gateway_commands.c (gateway_setup_command): Deleted old
#if:ed out command.
* src/format.c (ssh_vformat_length): Deleted some old #if:ed out
code.
* src/io.c (do_buffered_read): Likewise.
* src/xalloc.c (lsh_object_free): Likewise.
* src/proxy.c (do_proxy_offer_service): Likewise.
* src/io_commands.h: Deleted old prototypes make_listen_local and
make_connect_local.

Rev: src/format.c:1.51
Rev: src/gateway_commands.h:1.4
Rev: src/io.c:1.181
Rev: src/io.h:1.98
Rev: src/proxy.c:1.15
Rev: src/xalloc.c:1.31
parent 6d224c05
......@@ -261,13 +261,7 @@ end_options:
/* Decimal not supported. */
assert(!decimal);
#if 0
if (decimal)
{
length += format_size_in_decimal(l) + 1;
}
else
#endif
if (!literal)
length += 4;
......
......@@ -36,7 +36,4 @@ extern struct command_2 gateway_accept;
struct command *
make_gateway_setup(struct local_info *local);
extern struct command gateway_setup_command;
#define GATEWAY_SETUP (&gateway_setup_command.super)
#endif /* GATEWAY_COMMANDS_H_INCLUDED */
......@@ -440,11 +440,6 @@ do_buffered_read(struct io_callback *s,
assert(fd->want_read);
#if 0
/* If hanged_up is set, pretend that read returned 0 */
res = fd->hanged_up ? 0 : read(fd->fd, buffer, self->buffer_size);
#endif
res = read(fd->fd, buffer, self->buffer_size);
if (res < 0)
......
......@@ -87,11 +87,6 @@ enum io_type { IO_PTY = 1 };
; User's close callback
(close_callback object lsh_callback)
; This flag is set by the backend if it detects that a
; connection is hanged up.
;;; (hanged_up . int)
(want_read . int)
; Called if poll indicates that data can be read.
(read object io_callback)
......
......@@ -416,11 +416,7 @@ do_proxy_offer_service(struct command *s,
connection->dispatch[SSH_MSG_SERVICE_REQUEST]
= make_proxy_service_handler(self->services, c, e);
#if 0
/* currently servers may not ask for services in clients */
connection->chain->dispatch[SSH_MSG_SERVICE_REQUEST]
= make_proxy_service_request(self->server_services, c, e);
#endif
}
struct command *
......
......@@ -279,11 +279,6 @@ lsh_object_free(struct lsh_object *o)
if (o->alloc_method != LSH_ALLOC_HEAP)
fatal("lsh_object_free: Object not allocated on the heap!\n");
#if 0
if (o->isa->free_instance)
o->isa->free_instance(o);
#endif
lsh_free(o);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment