c170121781b81e765a770bc71fef19b07c199a7a angie Fri Feb 1 10:46:36 2013 -0800 Code Review #10076 - Undoing much of e92495a7 because Tim made me lookagain at why I was getting the composite back from tdbForTrack. diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c index 096cd0d..fc6fe7d 100644 --- src/hg/lib/hdb.c +++ src/hg/lib/hdb.c @@ -3649,37 +3649,30 @@ /* Look "to the sky" in parents of root generation as well. */ if (level == 0) { for (tdb = tdbList; tdb != NULL; tdb = tdb->next) { struct trackDb *p = tdb->parent; if (p != NULL && sameString(track, p->track)) return p; } } return NULL; } -struct trackDb *findSubtrackByName(struct trackDb *ancestorTdb, char *track) -/* Given a tdb for a composite, return the subtrack tdb for track or NULL. */ -{ -// start at level 1 instead of 0, to avoid getting ancestor of track back again. -return rFindTrack(1, ancestorTdb, track); -} - #ifdef DEBUG static void dumpFlagStatus(struct trackDb *tdbList, char *tableName, char *label) /* Look for tdbList for track matching tableName. Print out info on it starting with label. */ { struct trackDb *tdb = rFindTrack(0, tdbList, tableName); if (tdb == NULL) printf("%s: nil
\n", label); else printf("%s: treeNodeType %d, composite? %d, supertrack ? %d
\n", label, tdb->treeNodeType, COMPOSITE_NODE(tdb->treeNodeType), SUPERTRACK_NODE(tdb->treeNodeType)); } #endif /* DEBUG */ static void addChildRefsToParents(struct trackDb *tdbList) /* Go through tdbList and set up the ->children field in parents with references * to their children. */