session*.c: Remove some unneeded lines.

This commit is contained in:
Uwe Hermann 2014-07-22 23:25:24 +02:00
parent 271cdfd267
commit f4d2042d3c
2 changed files with 2 additions and 14 deletions

View File

@ -725,8 +725,6 @@ SR_API int sr_session_source_add(struct sr_session *session, int fd,
{ {
GPollFD p; GPollFD p;
(void) session;
p.fd = fd; p.fd = fd;
p.events = events; p.events = events;
@ -751,8 +749,6 @@ SR_API int sr_session_source_add_pollfd(struct sr_session *session,
GPollFD *pollfd, int timeout, sr_receive_data_callback cb, GPollFD *pollfd, int timeout, sr_receive_data_callback cb,
void *cb_data) void *cb_data)
{ {
(void) session;
return _sr_session_source_add(session, pollfd, timeout, cb, return _sr_session_source_add(session, pollfd, timeout, cb,
cb_data, (gintptr)pollfd); cb_data, (gintptr)pollfd);
} }
@ -778,8 +774,6 @@ SR_API int sr_session_source_add_channel(struct sr_session *session,
{ {
GPollFD p; GPollFD p;
(void) session;
#ifdef _WIN32 #ifdef _WIN32
g_io_channel_win32_make_pollfd(channel, events, &p); g_io_channel_win32_make_pollfd(channel, events, &p);
#else #else
@ -863,8 +857,6 @@ static int _sr_session_source_remove(struct sr_session *session, gintptr poll_ob
*/ */
SR_API int sr_session_source_remove(struct sr_session *session, int fd) SR_API int sr_session_source_remove(struct sr_session *session, int fd)
{ {
(void) session;
return _sr_session_source_remove(session, (gintptr)fd); return _sr_session_source_remove(session, (gintptr)fd);
} }
@ -882,8 +874,6 @@ SR_API int sr_session_source_remove(struct sr_session *session, int fd)
SR_API int sr_session_source_remove_pollfd(struct sr_session *session, SR_API int sr_session_source_remove_pollfd(struct sr_session *session,
GPollFD *pollfd) GPollFD *pollfd)
{ {
(void) session;
return _sr_session_source_remove(session, (gintptr)pollfd); return _sr_session_source_remove(session, (gintptr)pollfd);
} }
@ -902,8 +892,6 @@ SR_API int sr_session_source_remove_pollfd(struct sr_session *session,
SR_API int sr_session_source_remove_channel(struct sr_session *session, SR_API int sr_session_source_remove_channel(struct sr_session *session,
GIOChannel *channel) GIOChannel *channel)
{ {
(void) session;
return _sr_session_source_remove(session, (gintptr)channel); return _sr_session_source_remove(session, (gintptr)channel);
} }