8185f1465a5fb067b3be590f6ecdc26c9bb1af62
kent
  Tue Mar 5 10:29:41 2013 -0800
Polishing code a little with no functional change.
diff --git src/utils/bedToBigBed/bedToBigBed.c src/utils/bedToBigBed/bedToBigBed.c
index ce17c3a..8a47dc7 100644
--- src/utils/bedToBigBed/bedToBigBed.c
+++ src/utils/bedToBigBed/bedToBigBed.c
@@ -62,38 +62,30 @@
   , version, bbiCurrentVersion, blockSize, itemsPerSlot
   );
 }
 
 static struct optionSpec options[] = {
    {"blockSize", OPTION_INT},
    {"itemsPerSlot", OPTION_INT},
    {"type", OPTION_STRING},
    {"as", OPTION_STRING},
    {"unc", OPTION_BOOLEAN},
    {"tab", OPTION_BOOLEAN},
    {"extraIndex", OPTION_STRING},
    {NULL, 0},
 };
 
-struct bbNamedFileChunk 
-/* A name associated with an offset into a possibly large file. */
-    {
-    char *name;
-    bits64 offset;
-    bits64 size;
-    };
-
 int bbNamedFileChunkCmpByName(const void *va, const void *vb)
 /* Compare two named offset object to facilitate qsorting by name. */
 {
 const struct bbNamedFileChunk *a = va, *b = vb;
 return strcmp(a->name, b->name);
 }
 
 static int maxBedNameSize;
 
 void bbNamedFileChunkKey(const void *va, char *keyBuf)
 /* Copy name to keyBuf for bPlusTree maker */
 {
 const struct bbNamedFileChunk *item = va;
 strncpy(keyBuf,item->name, maxBedNameSize);
 }
@@ -158,32 +150,30 @@
 int resTry;
 for (resTry = 0; resTry < resTryCount; ++resTry)
     resEnds[resTry] = 0;
 boolean atEnd = FALSE, sameChrom = FALSE;
 bits32 start = 0, end = 0;
 char *chrom = NULL;
 struct bed *bed;
 AllocVar(bed);
 
 /* Help keep track of which beds are in current chunk so as to write out
  * namedChunks to eim if need be. */
 long sectionStartIx = 0, sectionEndIx = 0;
 
 for (;;)
     {
-    // ugly - code for bedN/bedP and as used to go here.
-
     /* Get next line of input if any. */
     if (lineFileNextReal(lf, &line))
 	{
 	/* Chop up line and make sure the word count is right. */
 	int wordCount;
 	if (tabSep)
 	    wordCount = chopTabs(line, row);
 	else
 	    wordCount = chopLine(line, row);
 	lineFileExpectWords(lf, fieldCount, wordCount);
 
 	loadAndValidateBed(row, bedN, fieldCount, lf, bed, as, FALSE);
 
 	chrom = bed->chrom;
 	start = bed->chromStart;