From 6e90c1c113c42d28d4a1b657bc9e8764547fcedd Mon Sep 17 00:00:00 2001 From: "Christopher J. Morrone" Date: Sun, 8 Jan 2012 13:56:13 -0800 Subject: [PATCH] Remove dead code. --- src/ior.c | 34 ---------------------------------- src/parse_options.c | 1 - src/utilities.c | 1 - 3 files changed, 36 deletions(-) diff --git a/src/ior.c b/src/ior.c index 1d04705..7060345 100644 --- a/src/ior.c +++ b/src/ior.c @@ -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); @@ -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 *); @@ -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. @@ -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. */ @@ -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) { @@ -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; @@ -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; diff --git a/src/parse_options.c b/src/parse_options.c index 938cc55..3353d0f 100644 --- a/src/parse_options.c +++ b/src/parse_options.c @@ -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++); diff --git a/src/utilities.c b/src/utilities.c index b2a81bd..61b4f85 100644 --- a/src/utilities.c +++ b/src/utilities.c @@ -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;