From 802bae110b6f58514471f9a7826e09342d84c245 Mon Sep 17 00:00:00 2001 From: Celine Mercier Date: Wed, 21 Sep 2016 17:09:59 +0200 Subject: [PATCH] Removed deprecated function --- src/obidms.c | 18 ------------------ src/obidms.h | 19 ------------------- 2 files changed, 37 deletions(-) diff --git a/src/obidms.c b/src/obidms.c index 607e9a9..872f383 100644 --- a/src/obidms.c +++ b/src/obidms.c @@ -557,24 +557,6 @@ int obi_close_dms(OBIDMS_p dms) } -int obi_dms_is_column_name_in_list(OBIDMS_p dms, const char* column_name) -{ - int i; - Opened_columns_list_p columns_list; - - columns_list = dms->opened_columns; - - for (i=0; i < (columns_list->nb_opened_columns); i++) - { - if (!strcmp(((*((columns_list->columns)+i))->header)->name, column_name)) - { // Found it - return 1; - } - } - return 0; -} - - OBIDMS_column_p obi_dms_get_column_from_list(OBIDMS_p dms, const char* column_name, obiversion_t version) { int i; diff --git a/src/obidms.h b/src/obidms.h index 7f2b5e7..0765559 100644 --- a/src/obidms.h +++ b/src/obidms.h @@ -205,25 +205,6 @@ OBIDMS_p obi_dms(const char* dms_path); int obi_close_dms(OBIDMS_p dms); -/** - * @brief Checks if a column with a given name is in the list of opened columns. - * - * @warning: Checking only the name means that the column can be of any version. - * - * @param dms The OBIDMS. - * @param column_name The column name that should be looked for. - * - * @returns An integer value indicating whether there is at least one column with that name - * in the list of opened columns. - * @retval 0 if there is at least one column with that name in the list of opened columns. - * @retval 1 if there is no column with that name in the list of opened columns. - * - * @since April 2016 - * @author Celine Mercier (celine.mercier@metabarcoding.org) - */ -int obi_dms_is_column_name_in_list(OBIDMS_p dms, const char* column_name); - - /** * @brief Returns a column identified by its name and its version number from the list of opened columns. *