From 6fc6860ea7034986fd1fcdd133bbc2a1987f900a Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 20 Aug 2013 13:44:53 +0300 Subject: [PATCH] Remove some dead code. --- socket.c | 10 ---------- socket.h | 2 -- 2 files changed, 12 deletions(-) diff --git a/socket.c b/socket.c index bc279f4..da574e2 100644 --- a/socket.c +++ b/socket.c @@ -67,16 +67,6 @@ static void SOCK_set_error(SocketClass *s, int _no, const char *_msg) mylog("(%d)%s ERRNO=%d\n", _no, _msg, gerrno); } -void -SOCK_clear_error(SocketClass *self) -{ - self->errornumber = 0; - if (NULL != self->_errormsg_) - free(self->_errormsg_); - self->_errormsg_ = NULL; -} - - SocketClass * SOCK_Constructor(const ConnectionClass *conn) { diff --git a/socket.h b/socket.h index 7e6a826..8b1ad91 100644 --- a/socket.h +++ b/socket.h @@ -236,7 +236,5 @@ Int4 SOCK_flush_output(SocketClass *self); UCHAR SOCK_get_next_byte(SocketClass *self, BOOL peek); void SOCK_put_next_byte(SocketClass *self, UCHAR next_byte); Int4 SOCK_get_response_length(SocketClass *self); -void SOCK_clear_error(SocketClass *self); -UInt4 SOCK_skip_n_bytes(SocketClass *self, UInt4 skip_length); #endif /* __SOCKET_H__ */ -- 2.39.5