13b4184b2e434953f411f20dd87104f99b550275
hiram
  Fri Oct 2 11:53:27 2015 -0700
fixup gcc warnings for -Wunused-but-set-variable refs #16121

diff --git src/hg/lib/agp.c src/hg/lib/agp.c
index 82e76c8..6f81498 100644
--- src/hg/lib/agp.c
+++ src/hg/lib/agp.c
@@ -127,71 +127,37 @@
         /* gap */
         lineFileExpectWords(lf, 8, wordCount);
         agpGap = agpGapLoad(words);
         if (agpGap->chromStart != lastPos)
             errAbort("Gap start (%d, %d) doesn't match previous end line %d of %s\n",
                      agpGap->chromStart, lastPos, lf->lineIx, lf->fileName);
         lastPos = agpGap->chromEnd + 1;
         agp->entry = agpGap;
         agp->isFrag = FALSE;
         }
     if ((hel = hashLookup(agpHash, chrom)) == NULL)
         hashAdd(agpHash, chrom, agp);
     else
         slAddHead(&(hel->val), agp);
     }
-#ifndef DEBUG
-    {
-struct hashCookie cookie;
-struct hashEl *hel;
-cookie = hashFirst(agpHash);
-while ((hel = hashNext(&cookie)) != NULL)
-    {
-    struct agp *agpList;
-    agpList = (struct agp *)hel->val;
-    /*
-    for (agp = agpList; agp != NULL; agp = agp->next)
-        printf("isFrag: %d\n", agp->isFrag);
-        */
-    }
-    }
-#endif
 /* reverse AGP lists */
-//hashTraverseVals(agpHash, slReverse);
-#ifndef DEBUG
-    {
 struct hashCookie cookie;
-struct hashEl *hel;
 cookie = hashFirst(agpHash);
 while ((hel = hashNext(&cookie)) != NULL)
     {
-    struct agp *agpList;
     slReverse(&hel->val);
-    agpList = hel->val;
-    /*
-    agpList = (struct agp *)hel->val;
-    slReverse(&agpList);
-    hashRemove(agpHash, hel->name);
-    hashAdd(agpHash, hel->name, agpList);
-    */
-    /*
-    for (agp = agpList; agp != NULL; agp = agp->next)
-        printf("isFrag: %d\n", agp->isFrag);
-        */
-    }
     }
-#endif
 return agpHash;
 }
 
 void freeAgpHashEl(struct hashEl *agpHashEl)
 /* Free this list up. */
 {
 struct agp *list = agpHashEl->val;
 agpFreeList(&list);
 }
 
 void agpHashFree(struct hash **pAgpHash)
 /* Free up the hash created with agpLoadAll. */
 {
 struct hash *agpHash = *pAgpHash;
 hashTraverseEls(agpHash, freeAgpHashEl);