apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r744549 - /apr/apr/trunk/poll/unix/poll.c
Date Sat, 14 Feb 2009 17:48:34 GMT
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 */



Mime
View raw message