]> git.puffer.fish Git - mirror/frr.git/commitdiff
Remove uncalled function causing compiler error
authorSam Tannous <stannous@cumulusnetworks.com>
Thu, 4 May 2017 13:54:17 +0000 (06:54 -0700)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 4 May 2017 14:19:57 +0000 (10:19 -0400)
Ticket: CM-16086
Reviewed By: sharpd
Testing Done: Built debs and tested on hardnode

With snmp enabled, this function was causing compiler
errors since it was not being called.  Removed it.

Signed-off-by: Sam Tannous <stannous@cumulusnetworks.com>
lib/thread.c

index e10d0c48bfdc947b050d5ca61f0470406e37412c..e3db7a93e5944587d884e6623e03cb04557ab37b 100644 (file)
@@ -1153,28 +1153,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)