mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-09 15:23:50 -05:00
Remove sk_{get,set}_private_ptr completely!
It was only actually used in X11 and port forwarding, to find internal state structures given only the Socket that ssh.c held. So now that that lookup has been reworked to be the sensible way round, private_ptr is no longer used for anything and can be removed. [originally from svn r10075]
This commit is contained in:
@ -42,8 +42,6 @@ struct Socket_handle_tag {
|
||||
char *error;
|
||||
|
||||
Plug plug;
|
||||
|
||||
void *privptr;
|
||||
};
|
||||
|
||||
static int handle_gotdata(struct handle *h, void *data, int len)
|
||||
@ -136,18 +134,6 @@ static void sk_handle_flush(Socket s)
|
||||
/* do nothing */
|
||||
}
|
||||
|
||||
static void sk_handle_set_private_ptr(Socket s, void *ptr)
|
||||
{
|
||||
Handle_Socket ps = (Handle_Socket) s;
|
||||
ps->privptr = ptr;
|
||||
}
|
||||
|
||||
static void *sk_handle_get_private_ptr(Socket s)
|
||||
{
|
||||
Handle_Socket ps = (Handle_Socket) s;
|
||||
return ps->privptr;
|
||||
}
|
||||
|
||||
static void handle_socket_unfreeze(void *psv)
|
||||
{
|
||||
Handle_Socket ps = (Handle_Socket) psv;
|
||||
@ -258,8 +244,6 @@ Socket make_handle_socket(HANDLE send_H, HANDLE recv_H, Plug plug,
|
||||
sk_handle_write_oob,
|
||||
sk_handle_write_eof,
|
||||
sk_handle_flush,
|
||||
sk_handle_set_private_ptr,
|
||||
sk_handle_get_private_ptr,
|
||||
sk_handle_set_frozen,
|
||||
sk_handle_socket_error
|
||||
};
|
||||
|
Reference in New Issue
Block a user