From: David Lamparter Date: Sun, 12 Feb 2017 21:40:11 +0000 (+0100) Subject: lib: remove unused add_snmp_pollfds() X-Git-Tag: frr-3.1-dev~5^2^2~9 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=4c0a782d477d527fb795640225c5f22767105f32;p=mirror%2Ffrr.git lib: remove unused add_snmp_pollfds() Signed-off-by: David Lamparter --- diff --git a/lib/thread.c b/lib/thread.c index 6138e79718..e707fc584c 100644 --- a/lib/thread.c +++ b/lib/thread.c @@ -1037,28 +1037,6 @@ thread_process_fds_helper (struct thread_master *m, struct thread *thread, threa #if defined(HAVE_POLL) -#if defined(HAVE_SNMP) -/* add snmp fds to poll set */ -static void -add_snmp_pollfds(struct thread_master *m, fd_set *snmpfds, int fdsetsize) -{ - int i; - m->handler.pfdcountsnmp = m->handler.pfdcount; - /* cycle trough fds and add neccessary fds to poll set */ - for (i=0;ihandler.pfdcountsnmp <= m->handler.pfdsize); - - m->handler.pfds[m->handler.pfdcountsnmp].fd = i; - m->handler.pfds[m->handler.pfdcountsnmp].events = POLLIN; - m->handler.pfdcountsnmp++; - } - } -} -#endif - /* check poll events */ static void check_pollfds(struct thread_master *m, fd_set *readfd, int num)