2e6d6714eb049206db111387d29ec81433cdd1f2 braney Sun Oct 9 10:07:07 2011 -0700 don't reopen the trackHub's since they get opened when we check the status diff --git src/hg/lib/trackHub.c src/hg/lib/trackHub.c index aeeb345..49411e9 100644 --- src/hg/lib/trackHub.c +++ src/hg/lib/trackHub.c @@ -497,40 +497,15 @@ if (hub == NULL) return 1; verbose(2, "hub %s\nshortLabel %s\nlongLabel %s\n", hubUrl, hub->shortLabel, hub->longLabel); verbose(2, "%s has %d elements\n", hub->genomesFile, slCount(hub->genomeList)); struct trackHubGenome *genome; for (genome = hub->genomeList; genome != NULL; genome = genome->next) { retVal |= hubCheckGenome(hub, genome, errors); } trackHubClose(&hub); return retVal; } -struct trackDb *trackHubAddTracks(int id, char *hubUrl, char *database, - struct trackHub **pHubList) -/* Load up stuff from data hub and append to list. The hubUrl points to - * a trackDb.ra format file. */ -{ -/* Load trackDb.ra file and make it into proper trackDb tree */ -char hubName[64]; -struct trackDb *tdbList = NULL; -safef(hubName, sizeof(hubName), "hub_%d",id); -struct trackHub *hub = trackHubOpen(hubUrl, hubName); -if (hub != NULL) - { - struct trackHubGenome *hubGenome = trackHubFindGenome(hub, database); - if (hubGenome != NULL) - { - tdbList = trackHubTracksForGenome(hub, hubGenome); - tdbList = trackDbLinkUpGenerations(tdbList); - tdbList = trackDbPolishAfterLinkup(tdbList, database); - trackDbPrioritizeContainerItems(tdbList); - if (tdbList != NULL) - slAddHead(pHubList, hub); - } - } -return tdbList; -}