From 352ed6fb5326b1275f3741525472c302e5293f8d Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Thu, 5 Jan 2023 10:30:10 +0100 Subject: [PATCH] Simplified trexio_cp --- src/templates_front/templator_front.org | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/templates_front/templator_front.org b/src/templates_front/templator_front.org index a3d3f28..f03a8be 100644 --- a/src/templates_front/templator_front.org +++ b/src/templates_front/templator_front.org @@ -1652,22 +1652,7 @@ trexio_cp(const char* source, const char* dest) pid_t pid = fork(); if (pid == 0) { - switch (back_end_local) { - case TREXIO_TEXT: - execlp("cp", CP_COMMAND, source, dest, (char *)0); - case TREXIO_HDF5: -#ifdef HAVE_HDF5 - execlp("cp", CP_COMMAND, source, dest, (char *)0); -#else - return TREXIO_FILE_ERROR; -#endif -/* - case TREXIO_JSON: - execlp("cp", CP_COMMAND, source, dest, (char *)0); -,*/ - default: - return TREXIO_FILE_ERROR; - } + execlp("cp", CP_COMMAND, source, dest, (char *)0); } else if (pid < 0) { return TREXIO_FILE_ERROR; } else {