From c87227b65a050ee655fe66623c8d1a799d53e9ce Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Fri, 22 Apr 2016 16:11:56 +0200 Subject: [PATCH] Uncommented an error message that doesn't need to be commented anymore --- src/obidmscolumn.c | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/src/obidmscolumn.c b/src/obidmscolumn.c index 0c6c273..f347c96 100644 --- a/src/obidmscolumn.c +++ b/src/obidmscolumn.c @@ -773,7 +773,7 @@ OBIDMS_column_p obi_open_column(OBIDMS_p dms, column_directory = obi_open_column_directory(dms, column_name); if (column_directory == NULL) { - //obidebug(1, "\nError opening a column directory structure"); // TODO + obidebug(1, "\nError opening a column directory structure"); return NULL; } @@ -1438,29 +1438,3 @@ int obi_column_prepare_to_get_value(OBIDMS_column_p column, index_t line_nb) return 0; } - -char* obi_column_format_date(time_t date) // TODO put in utils.c -{ - char* formatted_time; - struct tm* tmp; - - formatted_time = (char*) malloc(FORMATTED_TIME_LENGTH*sizeof(char)); - - tmp = localtime(&date); - if (tmp == NULL) - { - obi_set_errno(OBICOL_UNKNOWN_ERROR); - obidebug(1, "\nError formatting a date"); - return NULL; - } - - if (strftime(formatted_time, FORMATTED_TIME_LENGTH, "%c", tmp) == 0) - { - obi_set_errno(OBICOL_UNKNOWN_ERROR); - obidebug(1, "\nError formatting a date"); - return NULL; - } - - return formatted_time; -} -