src/hg/encode/encodePatchTdb/encodePatchTdb.c 1.5
1.5 2010/01/05 05:34:27 kent
Removing unused routine.
Index: src/hg/encode/encodePatchTdb/encodePatchTdb.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/encode/encodePatchTdb/encodePatchTdb.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/hg/encode/encodePatchTdb/encodePatchTdb.c 5 Jan 2010 05:31:25 -0000 1.4
+++ src/hg/encode/encodePatchTdb/encodePatchTdb.c 5 Jan 2010 05:34:27 -0000 1.5
@@ -151,41 +151,8 @@
struct raTag *tag = raRecordMustFindTag(r, name);
return tag->val;
}
-struct loadInfo *loadInfoReadRa(char *fileName)
-/* Read ra file and turn it into a list of loadInfo. */
-{
-struct lineFile *lf = lineFileOpen(fileName, TRUE);
-struct loadInfo *list = NULL, *el;
-while (raSkipLeadingEmptyLines(lf, NULL))
- {
- char *tag, *val;
- AllocVar(el);
- while (raNextTagVal(lf, &tag, &val, NULL))
- {
- if (sameString(tag, "tablename"))
- el->name = cloneString(val);
- else if (sameString(tag, "assembly"))
- el->db = cloneString(val);
- else if (sameString(tag, "view"))
- el->view = cloneString(val);
- else if (sameString(tag, "downloadOnly"))
- el->downloadOnly = cloneString(val);
- }
- if (el->name == NULL)
- errAbort("missing tablename line %d of %s", lf->lineIx, lf->fileName);
- if (el->db == NULL)
- errAbort("missing assembly line %d of %s", lf->lineIx, lf->fileName);
- if (el->downloadOnly == NULL)
- errAbort("missing downloadOnly line %d of %s", lf->lineIx,lf->fileName);
- slAddHead(&list, el);
- }
-lineFileClose(&lf);
-slReverse(&list);
-return list;
-}
-
static struct raRecord *readRecordsFromFile(struct raFile *file, struct dyString *dy)
/* Read all the records in a file and return as a list. The dy parameter returns the
* last bits of the file (after the last record). */
{