session*.c: Remove some unneeded lines.
This commit is contained in:
parent
271cdfd267
commit
f4d2042d3c
|
@ -725,8 +725,6 @@ SR_API int sr_session_source_add(struct sr_session *session, int fd,
|
|||
{
|
||||
GPollFD p;
|
||||
|
||||
(void) session;
|
||||
|
||||
p.fd = fd;
|
||||
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,
|
||||
void *cb_data)
|
||||
{
|
||||
(void) session;
|
||||
|
||||
return _sr_session_source_add(session, pollfd, timeout, cb,
|
||||
cb_data, (gintptr)pollfd);
|
||||
}
|
||||
|
@ -778,8 +774,6 @@ SR_API int sr_session_source_add_channel(struct sr_session *session,
|
|||
{
|
||||
GPollFD p;
|
||||
|
||||
(void) session;
|
||||
|
||||
#ifdef _WIN32
|
||||
g_io_channel_win32_make_pollfd(channel, events, &p);
|
||||
#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)
|
||||
{
|
||||
(void) session;
|
||||
|
||||
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,
|
||||
GPollFD *pollfd)
|
||||
{
|
||||
(void) session;
|
||||
|
||||
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,
|
||||
GIOChannel *channel)
|
||||
{
|
||||
(void) session;
|
||||
|
||||
return _sr_session_source_remove(session, (gintptr)channel);
|
||||
}
|
||||
|
||||
|
|
|
@ -300,7 +300,7 @@ SR_API int sr_session_save_init(struct sr_session *session,
|
|||
int tmpfile, cnt, ret, i;
|
||||
char version[1], metafile[32], *s;
|
||||
|
||||
(void) session;
|
||||
(void)session;
|
||||
|
||||
if (!filename) {
|
||||
sr_err("%s: filename was NULL", __func__);
|
||||
|
@ -402,7 +402,7 @@ SR_API int sr_session_append(struct sr_session *session, const char *filename,
|
|||
const char *entry_name;
|
||||
char *metafile, tmpname[32], chunkname[16];
|
||||
|
||||
(void) session;
|
||||
(void)session;
|
||||
|
||||
if ((ret = sr_sessionfile_check(filename)) != SR_OK)
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue