Remove unused patty_ax25_sock_recv_pending()

This commit is contained in:
XANTRONIX Development 2020-10-03 13:00:41 -04:00 committed by XANTRONIX Industrial
parent 92164908aa
commit 50d0af3f35
2 changed files with 0 additions and 15 deletions

View file

@ -252,8 +252,6 @@ ssize_t patty_ax25_sock_recv(patty_ax25_sock *sock,
void *buf, void *buf,
size_t len); size_t len);
ssize_t patty_ax25_sock_recv_pending(patty_ax25_sock *sock);
ssize_t patty_ax25_sock_resend(patty_ax25_sock *sock, int seq); ssize_t patty_ax25_sock_resend(patty_ax25_sock *sock, int seq);
ssize_t patty_ax25_sock_resend_pending(patty_ax25_sock *sock); ssize_t patty_ax25_sock_resend_pending(patty_ax25_sock *sock);

View file

@ -642,19 +642,6 @@ error_invalid_type:
return -1; return -1;
} }
ssize_t patty_ax25_sock_recv_pending(patty_ax25_sock *sock) {
if (sock->type != PATTY_AX25_SOCK_RAW) {
errno = EINVAL;
goto error_invalid_type;
}
return patty_kiss_tnc_pending(sock->raw);
error_invalid_type:
return -1;
}
static inline uint16_t control_i(patty_ax25_sock *sock, int ns) { static inline uint16_t control_i(patty_ax25_sock *sock, int ns) {
int flag = patty_ax25_sock_flow_left(sock) == 1? 1: 0; int flag = patty_ax25_sock_flow_left(sock) == 1? 1: 0;