From: Uwe Hermann Date: Tue, 22 Jul 2014 21:25:24 +0000 (+0200) Subject: session*.c: Remove some unneeded lines. X-Git-Tag: libsigrok-0.4.0~1220 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f4d2042d3c4b5aa63bb13e932b4f4d3cc4e651ab;p=libsigrok.git session*.c: Remove some unneeded lines. --- diff --git a/src/session.c b/src/session.c index d8a3b00b..dfb55cbc 100644 --- a/src/session.c +++ b/src/session.c @@ -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); } diff --git a/src/session_file.c b/src/session_file.c index 1c1cee5d..58282ea6 100644 --- a/src/session_file.c +++ b/src/session_file.c @@ -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;