e685265dd1b666acaab2bc076c141c368fb4be66 hiram Thu Oct 15 11:36:17 2015 -0700 fixup gcc warnings for -Wunused-but-set-variable refs #16121 diff --git src/hg/hgTracks/altGraphXTrack.c src/hg/hgTracks/altGraphXTrack.c index 4a537a0..ff0ba43 100644 --- src/hg/hgTracks/altGraphXTrack.c +++ src/hg/hgTracks/altGraphXTrack.c @@ -26,47 +26,41 @@ return TRUE; } return FALSE; } int altGraphXLayoutTrack(struct track *tg, int maxRows) /* Calculate the number of rows necessary to display the altGraphX items in this track. The full layout is expesive computationally and ugly visually if you zoom too far out, return altGraphXMaxRows to indicate switch to more dense mode if necessary. */ { struct altGraphX *ag = NULL; struct spaceSaver *ssList = NULL; struct hash *heightHash = NULL; int maxEnd = 0, maxDiff = 0, minStart = BIGNUM; -int winStartOffset = 0; -int extendedWidth = 0; int rowCount = 0; double scale = (double)insideWidth/(winEnd - winStart); spaceSaverFree(&tg->ss); for(ag = tg->items; ag != NULL; ag = ag->next) { maxDiff = max(maxDiff, (ag->tEnd-ag->tStart)); minStart = min(minStart, ag->tStart); maxEnd = max(maxEnd, ag->tEnd); } if(maxDiff*scale < .3*insideWidth) return altGraphXMaxRows; -/* Have to pretend we have a wider screen to do all the exons, - even if they aren't visable still want to have links to them. */ -extendedWidth = (maxEnd - minStart) * scale; -winStartOffset = max(0,winStart - minStart); altGraphXLayout(tg->items, winStart, winEnd, scale, maxRows, &ssList, &heightHash, &rowCount); tg->ss = ssList; tg->customPt = heightHash; return rowCount; } void altGraphXMapItem(struct track *tg, struct hvGfx *hvg, void *item, char *itemName, char *mapItemName, int start, int end, int x, int y, int width, int height) /* Create a link to hgc for altGraphX track */ { struct altGraphX *ag = item; char buff[32]; snprintf(buff, sizeof(buff), "%d", ag->id); mapBoxHc(hvg, start, end, x, y, width, height, tg->track, buff, "altGraphX Details");