<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -98,32 +98,12 @@ static void cq_init(CQ *cq) {
     cq-&gt;tail = NULL;
 }
 
-#if 0
-/*
- * Waits for work on a connection queue.
- */
-static CQ_ITEM *cq_pop(CQ *cq) {
-    CQ_ITEM *item;
-
-    pthread_mutex_lock(&amp;cq-&gt;lock);
-    while (NULL == cq-&gt;head)
-        pthread_cond_wait(&amp;cq-&gt;cond, &amp;cq-&gt;lock);
-    item = cq-&gt;head;
-    cq-&gt;head = item-&gt;next;
-    if (NULL == cq-&gt;head)
-        cq-&gt;tail = NULL;
-    pthread_mutex_unlock(&amp;cq-&gt;lock);
-
-    return item;
-}
-#endif
-
 /*
  * Looks for an item on a connection queue, but doesn't block if there isn't
  * one.
  * Returns the item, or NULL if no item is available
  */
-static CQ_ITEM *cq_peek(CQ *cq) {
+static CQ_ITEM *cq_pop(CQ *cq) {
     CQ_ITEM *item;
 
     pthread_mutex_lock(&amp;cq-&gt;lock);
@@ -341,7 +321,7 @@ static void thread_libevent_process(int fd, short which, void *arg) {
         if (settings.verbose &gt; 0)
             fprintf(stderr, &quot;Can't read from libevent pipe\n&quot;);
 
-    item = cq_peek(&amp;me-&gt;new_conn_queue);
+    item = cq_pop(&amp;me-&gt;new_conn_queue);
 
     if (NULL != item) {
         conn *c = conn_new(item-&gt;sfd, item-&gt;init_state, item-&gt;event_flags,</diff>
      <filename>thread.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8b03e781cf885c177d1c4b7ef0d846f893e53eec</id>
    </parent>
  </parents>
  <author>
    <name>Toru Maesaka</name>
    <email>dev@torum.net</email>
  </author>
  <url>http://github.com/tmaesaka/memcached/commit/df5d1bf9d87428d3e777782d9b676baf37667b53</url>
  <id>df5d1bf9d87428d3e777782d9b676baf37667b53</id>
  <committed-date>2008-10-14T20:20:47-07:00</committed-date>
  <authored-date>2008-10-14T20:20:47-07:00</authored-date>
  <message>Removed dead code and renamed cq_peek to cq_pop</message>
  <tree>c675fc0f6d61e9433e15633fb1cb02f5b494b846</tree>
  <committer>
    <name>Toru Maesaka</name>
    <email>dev@torum.net</email>
  </committer>
</commit>
