164d54ed22c894be328c9c4d7ebcdbc9c40f407e
hiram
  Thu Feb 29 10:53:41 2024 -0800
loadSizes is now a src/hg/common.c function refs #33064

diff --git src/hg/utils/pslLiftSubrangeBlat/pslLiftSubrangeBlat.c src/hg/utils/pslLiftSubrangeBlat/pslLiftSubrangeBlat.c
index ca4f7c4..30abd3c 100644
--- src/hg/utils/pslLiftSubrangeBlat/pslLiftSubrangeBlat.c
+++ src/hg/utils/pslLiftSubrangeBlat/pslLiftSubrangeBlat.c
@@ -27,42 +27,30 @@
   "options:\n"
   "  -tSizes=szfile - lift target side based on tName, using target sizes from\n"
   "                   this tab separated file.\n"
   "  -qSizes=szfile - lift query side based on qName, using query sizes from\n"
   "                   this tab separated file.\n"
   "Must specify at least on of -tSizes or -qSize or both.\n"
   );
 }
 
 static struct optionSpec options[] = {
     {"tSizes", OPTION_STRING},
     {"qSizes", OPTION_STRING},
     {NULL, 0},
 };
 
-static struct hash *loadSizes(char *szFile)
-/* load sizes into a hash */
-{
-struct hash *sizes = hashNew(0);
-struct lineFile *lf = lineFileOpen(szFile, TRUE);
-char *row[2];
-while (lineFileNextRowTab(lf, row, 2))
-    hashAddInt(sizes, row[0], sqlSigned(row[1]));
-
-return sizes;
-}
-
 static boolean parseName(char *desc, char *name, int *start, int *end)
 /* parse and validate name into it's parts. Return FALSE if name doesn't
  * contain a subrange specification. */
 {
 char *nameEnd = strchr(name, ':');
 if (nameEnd == NULL)
     return FALSE;
 char *p = nameEnd+1;
 char *pp = strchr(p, '-');
 if (pp == NULL)
     errAbort("invalid %s subrange: %s", desc, name);
 *pp = '\0';
 *start = sqlUnsigned(p);
 *pp = '-';
 pp++;