c9ddf4ca037d9b61b462b77da54bc2f5b14726be
chmalee
  Wed Oct 11 12:05:59 2023 -0700
Revert historical refSeq track changes

This reverts the following commits
5f7b28612df1ff4e29c31020b33f8fee9c097b11
346fa22af4717e4d8bdaa6a22a873ac4324c357b
d2346420237f134dff79722739380d022c5ec48d
fbcacfcd4a8baadb31fca8b07c8f831580c31c82
db4660fe604ccb1b21aa3b5dfe3421cf8ac662eb
bbca1ee6f90a46e7a139434849dbf32bd206b522

diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c
index baaa899..af609ea 100644
--- src/hg/lib/hdb.c
+++ src/hg/lib/hdb.c
@@ -5832,41 +5832,30 @@
 slNameFreeList(&gencodeTables);
 return tableName;
 }
 
 boolean hDbHasNcbiRefSeq(char *db)
 /* Return TRUE if db has NCBI's RefSeq alignments and annotations. */
 {
 // hTableExists() caches results so this shouldn't make for loads of new SQL queries if called
 // more than once.
 return (hTableExists(db, "ncbiRefSeq") && hTableExists(db, "ncbiRefSeqPsl") &&
         hTableExists(db, "ncbiRefSeqCds") && hTableExists(db, "ncbiRefSeqLink") &&
         hTableExists(db, "ncbiRefSeqPepTable") &&
         hTableExists(db, "seqNcbiRefSeq") && hTableExists(db, "extNcbiRefSeq"));
 }
 
-boolean hDbHasNcbiRefSeqOld(char *db)
-/* Return TRUE if db has NCBI's Historical RefSeq alignments and annotations. */
-{
-// hTableExists() caches results so this shouldn't make for loads of new SQL queries if called
-// more than once.
-return (hTableExists(db, "ncbiRefSeqPslOld") &&
-        hTableExists(db, "ncbiRefSeqCdsOld") && hTableExists(db, "ncbiRefSeqLinkOld") &&
-        hTableExists(db, "ncbiRefSeqPepTableOld") &&
-        hTableExists(db, "seqNcbiRefSeqOld") && hTableExists(db, "extNcbiRefSeqOld"));
-}
-
 char *hRefSeqAccForChrom(char *db, char *chrom)
 /* Return the RefSeq NC_000... accession for chrom if we can find it, else just chrom.
  * db must never change. */
 {
 static char *firstDb = NULL;
 static struct hash *accHash = NULL;
 static boolean checkExistence = TRUE;
 if (firstDb && !sameString(firstDb, db))
     errAbort("hRefSeqAccForChrom: only works for one db.  %s was passed in earlier, now %s.",
              firstDb, db);
 char *seqAcc = NULL;
 if (checkExistence && !trackHubDatabase(db) && hTableExists(db, "chromAlias"))
     // Will there be a chromAlias for hubs someday??
     {
     firstDb = db;