You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by mt...@apache.org on 2009/02/14 18:48:34 UTC
svn commit: r744549 - /apr/apr/trunk/poll/unix/poll.c
Author: mturk
Date: Sat Feb 14 17:48:33 2009
New Revision: 744549
URL: http://svn.apache.org/viewvc?rev=744549&view=rev
Log:
Remove unused code
Modified:
apr/apr/trunk/poll/unix/poll.c
Modified: apr/apr/trunk/poll/unix/poll.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/poll.c?rev=744549&r1=744548&r2=744549&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/poll.c (original)
+++ apr/apr/trunk/poll/unix/poll.c Sat Feb 14 17:48:33 2009
@@ -325,14 +325,8 @@
static apr_status_t impl_pollcb_remove(apr_pollcb_t *pollcb,
apr_pollfd_t *descriptor)
{
- int fd;
apr_uint32_t i;
- if (descriptor->desc_type == APR_POLL_SOCKET)
- fd = descriptor->desc.s->socketdes;
- else
- fd = descriptor->desc.f->filedes;
-
for (i = 0; i < pollcb->nelts; i++) {
if (descriptor->desc.s == pollcb->copyset[i]->desc.s) {
/* Found an instance of the fd: remove this and any other copies */