src/hg/hgc/hgc.c 1.1521

1.1521 2009/03/17 19:54:55 markd
minor speed up of rendering of mRNA/ESTs by checking gbSeq table before seq table, avoiding two sql requests. Also simplified code.
Index: src/hg/hgc/hgc.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/hgc.c,v
retrieving revision 1.1520
retrieving revision 1.1521
diff -b -B -U 4 -r1.1520 -r1.1521
--- src/hg/hgc/hgc.c	17 Mar 2009 18:57:07 -0000	1.1520
+++ src/hg/hgc/hgc.c	17 Mar 2009 19:54:55 -0000	1.1521
@@ -6442,11 +6442,10 @@
 if (sameString("mrnaBlastz", type) || sameString("pseudoMrna", type))
     {
     struct sqlConnection *conn = hAllocConn(database);
     unsigned retId = 0;
-    char *gbdate = NULL;
     sprintf(accTmp,"bz-%s",acc);
-    if (hRnaSeqAndIdx(accTmp, &rnaSeq, &retId, gbdate, conn) == -1)
+    if (hRnaSeqAndIdx(accTmp, &rnaSeq, &retId, conn) == -1)
         rnaSeq = hRnaSeq(database, acc);
     hFreeConn(&conn);
     }
 else if (sameString("HInvGeneMrna", type))