From 04b33df0407e03175a56096cb7ff79a56bea9e88 Mon Sep 17 00:00:00 2001 From: zilio nicolas Date: Thu, 27 Aug 2015 16:26:48 +0200 Subject: some cleaning --- pcilib/xml.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'pcilib/xml.c') diff --git a/pcilib/xml.c b/pcilib/xml.c index 203b147..482ab25 100644 --- a/pcilib/xml.c +++ b/pcilib/xml.c @@ -111,7 +111,6 @@ xmlSchemaFreeValidCtxt(ctxt); xmlFreeDoc(doc); } -//! free the resource if(schema != NULL) xmlSchemaFree(schema); xmlSchemaCleanupTypes(); @@ -654,41 +653,6 @@ while(docs[count]!=NULL){ } } - - - -/** pcilib_xml_read_config - * - * function to get the config we want at line j, in order to be able to have a configuration file with pwd to files we want -* @param[in,out] xmlfile the string representating a pwd to a file we want to access in:uninitilized out: the pwd. -* @param[in] i the line at which the function should read the file to get the pwd. - */ -void pcilib_xml_read_config(char** xmlfile, int j){ - FILE *fp; - - fp=fopen("config.txt","r"); - char line[60]; - memset(line,'\0',60); - int i=0,k; - char *temp1; - if(fp==NULL) pcilib_error("can't find the configuration file: it must be near the executable"); - - while(fgets(line,60,fp)!=NULL){ - if(i==j) { - k=0; - temp1=calloc((strlen(line)),sizeof(char)); - while(line[k]!='\n'){ - temp1[k]=line[k]; - k++; - } - temp1[k]='\0'; - *xmlfile=temp1; - } - i++; - memset(line,'\0',60); - } -} - #ifdef VIEW_OK /* pcilib_xml_getnumberformulaviews * -- cgit v1.2.3