26a76b91d8d8dc555c7bb64d8bbe33b485f98c0d
angie
Sun Sep 14 09:11:47 2014 -0700
Removing dead code for "useTarg" (#ifndef'd out with BRANEY_SAYS_USETARG_IS_OBSOLETE).
diff --git src/hg/lib/hui.c src/hg/lib/hui.c
index d92da3d..27bcb5c 100644
--- src/hg/lib/hui.c
+++ src/hg/lib/hui.c
@@ -5992,66 +5992,30 @@
char *defaultOffSpecies = trackDbSetting(tdb, "speciesDefaultOff");
struct hash *offHash = NULL;
if (defaultOffSpecies)
{
offHash = newHash(5);
DEFAULT_BUTTON( "id", "default_pw","cb_maf_","_maf_");
int wordCt = chopLine(defaultOffSpecies, words);
defaultOffSpeciesCnt = wordCt;
/* build hash of species that should be off */
int ii;
for(ii=0; ii < wordCt; ii++)
hashAdd(offHash, words[ii], NULL);
}
-#define BRANEY_SAYS_USETARG_IS_OBSOLETE
-#ifndef BRANEY_SAYS_USETARG_IS_OBSOLETE
-char *speciesTarget = trackDbSetting(tdb, SPECIES_TARGET_VAR);
-char *speciesTree = trackDbSetting(tdb, SPECIES_TREE_VAR);
-struct phyloTree *tree;
-if ((speciesTree != NULL) && ((tree = phyloParseString(speciesTree)) != NULL))
- {
- char buffer[128];
- char *nodeNames[512];
- int numNodes = 0;
- char *path, *orgName;
- int ii;
-
- safef(buffer, sizeof(buffer), "%s.vis",name);
- // not closestToHome because BRANEY_SAYS_USETARG_IS_OBSOLETE
- cartMakeRadioButton(cart, buffer,"useTarg", "useTarg");
- printf("Show shortest path to target species: ");
- path = phyloNodeNames(tree);
- numNodes = chopLine(path, nodeNames);
- for(ii=0; ii < numNodes; ii++)
- {
- if ((orgName = hOrganism(nodeNames[ii])) != NULL)
- nodeNames[ii] = orgName;
- nodeNames[ii][0] = toupper(nodeNames[ii][0]);
- }
-
- // not closestToHome because BRANEY_SAYS_USETARG_IS_OBSOLETE
- cgiMakeDropList(SPECIES_HTML_TARGET, nodeNames, numNodes,
- cartUsualString(cart, SPECIES_HTML_TARGET, speciesTarget));
- puts("
");
- // not closestToHome because BRANEY_SAYS_USETARG_IS_OBSOLETE
- cartMakeRadioButton(cart,buffer,"useCheck", "useTarg");
- printf("Show all species checked : ");
- }
-#endif///ndef BRANEY_SAYS_USETARG_IS_OBSOLETE
-
if (groupCt == 1)
puts("\n