Put #if 0 around unused function; add a few comments
r2405 | dcl | 2008-03-27 13:21:12 +1100 (Thu, 27 Mar 2008) | 2 lines
This commit is contained in:
5
nwatch.c
5
nwatch.c
@@ -251,6 +251,7 @@ static int NetWatchContextInsQue(pNetWatch self, pNWContext handle)
|
||||
return 1;
|
||||
}
|
||||
|
||||
#if 0 /* no longer used */
|
||||
/**
|
||||
* \brief private function to remove entry from unsorted queue
|
||||
*
|
||||
@@ -279,6 +280,7 @@ static void NetWatchContextRemQue(pNetWatch self, pNWContext handle)
|
||||
handle->vrfy = 0;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* \brief private function to purge invalid entries
|
||||
@@ -344,8 +346,11 @@ int NetWatchRemoveCallback(pNWContext handle)
|
||||
return 0;
|
||||
if(!self || self->lMagic != NWMAGIC)
|
||||
return 0;
|
||||
/* mark as invalid */
|
||||
handle->sock = -1;
|
||||
/* increment count of invalid */
|
||||
self->nInvalid++;
|
||||
/* leave for garbage collection */
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user