]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: remove unused add_snmp_pollfds()
authorDavid Lamparter <equinox@opensourcerouting.org>
Sun, 12 Feb 2017 21:40:11 +0000 (22:40 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 24 Mar 2017 11:46:26 +0000 (12:46 +0100)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/thread.c

index 6138e79718c92d20338fb27ddd19fa8a61aa37e8..e707fc584cf893dfc2e7b6ee77f3b9ab7ac7d5a9 100644 (file)
@@ -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;i<fdsetsize;++i)
-    {
-      if (FD_ISSET(i, snmpfds))
-        {
-          assert (m->handler.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)