76a4d66b576dee44a14c4e73cd2bf18f4d0a812a jcasper Fri Oct 21 12:43:37 2016 -0700 Removing prototypes for previously removed functions, refs #14715 diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c index 70c095b..3c1c9c5 100644 --- src/hg/lib/hdb.c +++ src/hg/lib/hdb.c @@ -2395,32 +2395,31 @@ /* Return TRUE if ok to put up hgPcr on this database. */ { struct sqlConnection *conn = hConnectCentral(); char query[256]; boolean ok; sqlSafef(query, sizeof(query), "select canPcr from blatServers where db = '%s' and isTrans=0", database); ok = sqlQuickNum(conn, query); hDisconnectCentral(&conn); return ok; } char *hCentralDbDbOptionalField(char *database, char *field) /* Look up field in dbDb table keyed by database, * Return NULL if database doesn't exist. - * Free this string when you are done. Look in - * either the regular or the archive dbDb table for . + * Free this string when you are done. * The name for this function may be a little silly. */ { struct sqlConnection *conn = hConnectCentral(); char buf[128]; char query[256]; char *res = NULL; sqlSafef(query, sizeof(query), "select %s from %s where name = '%s'", field, dbDbTable(), database); if (sqlQuickQuery(conn, query, buf, sizeof(buf)) != NULL) res = cloneString(buf); hDisconnectCentral(&conn); return res; } @@ -4520,31 +4519,31 @@ * If fromDb!=NULL, return only those with that * fromDb. */ { return hLiftOverOrgs(FALSE,fromDb); } struct hash *hGetDatabaseRank() /* Get list of databases and make a hash of order rank * Dispose of this with hashFree. */ { struct dbDb *allDbList = NULL, *dbDb; struct hash *dbNameHash = newHash(3); int rank = 0; -/* Get list of all current and archived databases */ +/* Get list of all databases */ allDbList = hDbDbListDeadOrAlive(); /* Create a hash all dbs with rank number */ for (dbDb = allDbList; dbDb != NULL; dbDb = dbDb->next) { if (!hashFindVal(dbNameHash, dbDb->name)) { if (dbDb->active) hashAddInt(dbNameHash, dbDb->name, ++rank); } } hashAddInt(dbNameHash, "maxRank", rank); dbDbFreeList(&allDbList); return dbNameHash; } @@ -4557,31 +4556,31 @@ struct dbDb *allDbList = NULL; struct dbDb *liftOverDbList = NULL, *dbDb, *nextDbDb; struct liftOverChain *chainList = NULL, *chain; struct hash *hash = newHash(0), *dbNameHash = newHash(3); /* Get list of all liftOver chains in central database */ chainList = liftOverChainList(); /* Create hash of databases having liftOver chains from this database */ for (chain = chainList; chain != NULL; chain = chain->next) { if (!hashFindVal(hash, chain->fromDb)) hashAdd(hash, chain->fromDb, chain->fromDb); } -/* Get list of all current and archived databases */ +/* Get list of all databases */ allDbList = hDbDbList(); /* Create a new dbDb list of all entries in the liftOver hash */ for (dbDb = allDbList; dbDb != NULL; dbDb = nextDbDb) { /* current dbDb entries */ nextDbDb = dbDb->next; if (hashFindVal(hash, dbDb->name) && !hashFindVal(dbNameHash, dbDb->name)) { slAddHead(&liftOverDbList, dbDb); hashAdd(dbNameHash, dbDb->name, dbDb->name); } else dbDbFree(&dbDb); }