36d5542588a99a3e44bf65d16aa3c4600b562b87
braney
  Tue Jun 8 10:10:30 2021 -0700
changes in response to code review #27643

diff --git src/hg/lib/trackDbCustom.c src/hg/lib/trackDbCustom.c
index 30613d3..396b9ed 100644
--- src/hg/lib/trackDbCustom.c
+++ src/hg/lib/trackDbCustom.c
@@ -11,39 +11,30 @@
 #include "jksql.h"
 #include "trackDb.h"
 #include "hdb.h"
 #include "hui.h"
 #include "ra.h"
 #include "hash.h"
 #include "net.h"
 #include "sqlNum.h"
 #include "obscure.h"
 #include "hgMaf.h"
 #include "customTrack.h"
 #include "regexHelper.h"
 #include "fieldedTable.h"
 #include "tagRepo.h"
 
-static int cartVersion = 0;
-
-int trackDbGetCartVersion()
-/* Get the highest cart version that a set of trackDb entries has specified. */
-{
-return cartVersion;
-}
-
-
 struct trackDb *trackDbNew()
 /* Allocate a new trackDb with just very minimal stuff filled in. */
 {
 struct trackDb *tdb;
 AllocVar(tdb);
 tdb->canPack = 2;	/* Unknown value. */
 return tdb;
 }
 
 int trackDbCmp(const void *va, const void *vb)
 /* Compare to sort based on priority; use shortLabel as secondary sort key.
  * Note: parallel code to hgTracks.c:tgCmpPriority */
 {
 const struct trackDb *a = *((struct trackDb **)va);
 const struct trackDb *b = *((struct trackDb **)vb);
@@ -132,37 +123,30 @@
 if (bt->viewHash == NULL)
     bt->viewHash = hashNew(7);
 char *storeValue = cloneString(value);
 
 // squirrel away views
 if (startsWith("subGroup", var))
     {
     char *ptr = strchr(value, ' ');
     if (ptr)
         *ptr = 0;
     hashAdd(bt->viewHash, value, storeValue);
     if (ptr)
         *ptr = ' ';
     }
 
-if (startsWith("cartVersion", var))
-    {
-    unsigned thisCartVersion = sqlUnsigned(value);
-    if (thisCartVersion > cartVersion)
-        cartVersion = thisCartVersion;
-    }
-
 hashAdd(bt->settingsHash, var, storeValue);
 
 if (bt->overrides != NULL)
     hashAdd(bt->overrides, var, NULL);
 }
 
 //not needed?
 int bedDetailSizeFromType(char *type)
 /* parse bedSize from type line for bedDetail, assume 4 if none */
 {
 int ret = 4;  /* minimal expected */
 char *words[3];
 int wordCount = chopLine(cloneString(type), words);
 if (wordCount > 1)
     ret = atoi(words[1]) - 2; /* trackDb has field count, we want bedSize */