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/altGraphX.c src/hg/lib/altGraphX.c index 01c6539..0228b37 100644 --- src/hg/lib/altGraphX.c +++ src/hg/lib/altGraphX.c @@ -1371,41 +1371,33 @@ levels[row] = 1; } static void drawExonAt(struct spliceEdge *se, int heightPer, int regionStart, int regionEnd, struct hvGfx *hvg, int xOff, int y, double scale, MgFont *font, Color color, Color *shades) /* Draw an exon at. */ { int x1 = round((double)((int)se->start-regionStart)*scale) + xOff; int x2 = round((double)((int)se->end-regionStart)*scale) + xOff; int w=0, textWidth=0; boolean drawLabel = FALSE; Color exonColor; char buff[256]; -int conf = 0; -if(se->conf > 9) - conf = 9; -else if(se->conf < 2) - conf = 2; -else - conf = (int)se->conf; w = x2-x1; if (w < 1) w = 1; -//exonColor = shades[conf]; exonColor = MG_BLACK; hvGfxBox(hvg, x1, y, w, heightPer/2, exonColor); if(drawLabel) { safef(buff, sizeof(buff), "%d-%d-%d", se->v1, se->v2, (int)se->conf); textWidth = mgFontStringWidth(font, buff); if(textWidth <= w) hvGfxTextCentered(hvg, x1, y, w, heightPer/2, MG_WHITE, font, buff); } } struct spliceEdge *createFakeExon(int vertex, int position, int confidence) /* Return a spliceEdge of type exon that is a single base pair for this splice site. */ {