diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index afc90f1a1..8bdcf4351 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -55,7 +55,6 @@ add_library( util/path.cpp util/hash.cpp util/node_data.cpp - util/node_ctype.cpp util/util.cpp util/util_abort.cpp util/util_symlink.cpp diff --git a/lib/include/ert/util/node_ctype.hpp b/lib/include/ert/util/node_ctype.hpp index 3472636f8..440de1944 100644 --- a/lib/include/ert/util/node_ctype.hpp +++ b/lib/include/ert/util/node_ctype.hpp @@ -25,7 +25,6 @@ typedef enum { CTYPE_INVALID = 100 } node_ctype; -const char *node_ctype_name(node_ctype); #ifdef __cplusplus } #endif diff --git a/lib/util/node_ctype.cpp b/lib/util/node_ctype.cpp deleted file mode 100644 index a677bad92..000000000 --- a/lib/util/node_ctype.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include -#include - -#include -#include - -const char *node_ctype_name(node_ctype ctype) { - const char *name; - switch (ctype) { - case (CTYPE_VOID_POINTER): - name = "void pointer"; - break; - case (CTYPE_INT_VALUE): - name = "integer value"; - break; - case (CTYPE_DOUBLE_VALUE): - name = "double value"; - break; - case (CTYPE_FLOAT_VALUE): - name = "float_value"; - break; - case (CTYPE_CHAR_VALUE): - name = "char value"; - break; - case (CTYPE_BOOL_VALUE): - name = "bool value"; - break; - case (CTYPE_SIZE_T_VALUE): - name = "size_t value"; - break; - default: - name = NULL; - util_abort("%s: fatal internal error node_ctype:%d not recognized - " - "aborting. \n", - __func__, ctype); - } - return name; -}