8715d83d38d8bb18adfdd9ce05771b4cede85407
angie
  Fri Dec 5 09:52:07 2014 -0800
Moved some hgTables code that had been copied into a couple differentplaces into a new lib module, cartTrackDb.  hgGenome/import.c has code
that is fairly similar but that also needs to filter out custom tracks
that were generated by hgGenome.

diff --git src/hg/hgTables/wikiTrack.c src/hg/hgTables/wikiTrack.c
index 66f923c..22c5eb5 100644
--- src/hg/hgTables/wikiTrack.c
+++ src/hg/hgTables/wikiTrack.c
@@ -1,51 +1,28 @@
 /* hgTables - Main and utility functions for table browser. */
 
 /* Copyright (C) 2013 The Regents of the University of California 
  * See README in this or parent directory for licensing information. */
 
 #include "common.h"
 #include "trackDb.h"
 #include "hui.h"
 #include "hdb.h"
 #include "wikiTrack.h"
 #include "hgTables.h"
 
 
-void wikiTrackDb(struct trackDb **list)
-/* create a trackDb entry for the wiki track */
-{
-struct trackDb *tdb;
-
-AllocVar(tdb);
-tdb->track = WIKI_TRACK_TABLE;
-tdb->table = WIKI_TRACK_TABLE;
-tdb->shortLabel = WIKI_TRACK_LABEL;
-tdb->longLabel = WIKI_TRACK_LONGLABEL;
-tdb->visibility = tvFull;
-tdb->priority = WIKI_TRACK_PRIORITY;
-
-tdb->html = hFileContentsOrWarning(hHelpFile(tdb->track));
-tdb->type = "none";
-tdb->grp = "map";
-tdb->canPack = FALSE;
-tdb->settingsHash = newHash(5);
-
-slAddHead(list, tdb);
-slSort(list, trackDbCmp);
-}
-
 struct hTableInfo *wikiHti()
 /* Create an hTableInfo for the wikiTrack. */
 {
 struct hTableInfo *hti;
 
 AllocVar(hti);
 hti->rootName = cloneString(WIKI_TRACK_TABLE);
 hti->isPos = TRUE;
 hti->isSplit = FALSE;
 hti->hasBin = TRUE;
 hti->type = cloneString("none");
 strncpy(hti->chromField, "chrom", 32);
 strncpy(hti->startField, "chromStart", 32);
 strncpy(hti->endField, "chromEnd", 32);
 strncpy(hti->nameField, "name", 32);