Skip to content

Commit

Permalink
Remove dead code.
Browse files Browse the repository at this point in the history
  • Loading branch information
morrone committed Jan 9, 2012
1 parent 3d47f76 commit 6e90c1c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 36 deletions.
34 changes: 0 additions & 34 deletions src/ior.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ ior_aiori_t *available_aiori[] = {
static void AioriBind(char *);
static void CheckForOutliers(IOR_param_t *, double **, int, int);
static void CheckFileSize(IOR_test_t *test, IOR_offset_t dataMoved, int rep);
static char *CheckTorF(char *);
static size_t CompareBuffers(void *, void *, size_t,
IOR_offset_t, IOR_param_t *, int);
static int CountErrors(IOR_param_t *, int, int);
Expand All @@ -83,7 +82,6 @@ static void FreeBuffers(int, void *, void *, void *, IOR_offset_t *);
static void GetTestFileName(char *, IOR_param_t *);
static double GetTimeStamp(void);
static char *HumanReadable(IOR_offset_t, int);
static char *LowerCase(char *);
static void PPDouble(int, double, char *);
static char *PrependDir(IOR_param_t *, char *);
static char **ParseFileName(char *, int *);
Expand Down Expand Up @@ -331,20 +329,6 @@ static void CheckFileSize(IOR_test_t *test, IOR_offset_t dataMoved, int rep)
results->aggFileSizeForBW[rep] = results->aggFileSizeFromXfer[rep];
}

/*
* Check if string is true or false.
*/
static char *CheckTorF(char *string)
{
string = LowerCase(string);
if (strcmp(string, "false") == 0) {
strcpy(string, "0");
} else if (strcmp(string, "true") == 0) {
strcpy(string, "1");
}
return (string);
}

/*
* Compare buffers after reading/writing each transfer. Displays only first
* difference in buffers and returns total errors counted.
Expand Down Expand Up @@ -1002,20 +986,6 @@ static char *HumanReadable(IOR_offset_t value, int base)
return valueStr;
}

/*
* Change string to lower case.
*/
static char *LowerCase(char *string)
{
char *nextChar = string;

while (*nextChar != '\0') {
*nextChar = (char)tolower((int)*nextChar);
nextChar++;
}
return (string);
}

/*
* Parse file name.
*/
Expand Down Expand Up @@ -1420,8 +1390,6 @@ static void PrintHeader(int argc, char **argv)
*/
static void ShowTestInfo(IOR_param_t *params)
{
int i;

fprintf(stdout, "\n");
fprintf(stdout, "Test %d started: %s", params->id, CurrentTimeString());
if (verbose >= VERBOSE_1) {
Expand Down Expand Up @@ -1649,7 +1617,6 @@ static void PrintSummaryOneOperation(IOR_test_t *test, double *times, char *oper
IOR_results_t *results = test->results;
struct results *bw;
int reps;
int i, j;

if (rank != 0)
return;
Expand Down Expand Up @@ -1690,7 +1657,6 @@ static void PrintSummaryAllTests(IOR_test_t *tests_head)
IOR_param_t *params = &tests_head->params;
IOR_results_t *results = tests_head->results;
IOR_test_t *tptr;
int i;

if (rank !=0)
return;
Expand Down
1 change: 0 additions & 1 deletion src/parse_options.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,6 @@ IOR_test_t *ReadConfigScript(char *scriptName)
FILE *file;
IOR_test_t *head = NULL;
IOR_test_t *tail = NULL;
IOR_test_t *newTest = NULL;

/* Initialize the first test */
head = CreateTest(&initialTestParams, test_num++);
Expand Down
1 change: 0 additions & 1 deletion src/utilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ IOR_offset_t StringToBytes(char *size_str)
void ShowFileSystemSize(char *fileSystem)
{
#ifndef _WIN32 /* FIXME */
int error;
char realPath[PATH_MAX];
char *fileSystemUnitStr;
long long int totalFileSystemSize;
Expand Down

0 comments on commit 6e90c1c

Please sign in to comment.