src/hg/hgTracks/simpleTracks.c 1.75

1.75 2009/04/20 19:32:02 angie
Removing some 5-year-old code that became buggy when we started resolving position to chr:start-end before drawing tracks. A user managed to trigger this by using chr:start-end item names, and viewing the item positions, wrongly turning blue items red.
Index: src/hg/hgTracks/simpleTracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/simpleTracks.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -b -B -U 4 -r1.74 -r1.75
--- src/hg/hgTracks/simpleTracks.c	1 Apr 2009 01:33:18 -0000	1.74
+++ src/hg/hgTracks/simpleTracks.c	20 Apr 2009 19:32:02 -0000	1.75
@@ -2211,15 +2211,9 @@
 static void lfColors(struct track *tg, struct linkedFeatures *lf,
         struct hvGfx *hvg, Color *retColor, Color *retBarbColor)
 /* Figure out color to draw linked feature in. */
 {
-/* If this is the item that the user searched by
-   make it be in red so visible. */
-if(sameString(position, lf->name))
-    {
-    *retColor = *retBarbColor =  MG_RED;
-    }
-else if (lf->filterColor > 0)
+if (lf->filterColor > 0)
     {
     if (lf->extra == (void *)USE_ITEM_RGB)
 	{
 	struct rgbColor itemRgb;