Skip to content

Commit

Permalink
Remove unused util_lockf
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Aug 8, 2024
1 parent 439a04e commit 8e15cca
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 105 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,6 @@ check_function_exists(getuid ERT_HAVE_GETUID)
check_function_exists(glob ERT_HAVE_GLOB)
check_function_exists(gmtime_r HAVE_GMTIME_R)
check_function_exists(localtime_r HAVE_LOCALTIME_R)
check_function_exists(lockf ERT_HAVE_LOCKF)
check_function_exists(mkdir HAVE_POSIX_MKDIR)
check_function_exists(_mkdir HAVE_WINDOWS_MKDIR)
check_function_exists(opendir ERT_HAVE_OPENDIR)
Expand Down
4 changes: 0 additions & 4 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ if(ERT_HAVE_SPAWN)
list(APPEND opt_srcs util/util_spawn.cpp)
endif()

if(ERT_HAVE_LOCKF)
list(APPEND opt_srcs util/util_lockf.cpp)
endif()

if(ERT_HAVE_UNISTD)
list(APPEND opt_srcs util/path_stack.cpp)
endif()
Expand Down
1 change: 0 additions & 1 deletion lib/ert_api_config.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#cmakedefine ERT_HAVE_GLOB
#cmakedefine ERT_HAVE_GETUID
#cmakedefine ERT_HAVE_REGEXP
#cmakedefine ERT_HAVE_LOCKF
#cmakedefine ERT_TIME_T_64BIT_ACCEPT_PRE1970
#cmakedefine ERT_WINDOWS_LFS
#cmakedefine ERT_HAVE_PING
Expand Down
5 changes: 0 additions & 5 deletions lib/include/ert/util/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,6 @@ int util_spawn_blocking(const char *executable, int argc, const char **argv,
const char *stdout_file, const char *stderr_file);
#endif

#ifdef ERT_HAVE_LOCKF
FILE *util_fopen_lockf(const char *, const char *);
bool util_try_lockf(const char *, mode_t, int *);
#endif

#include "util_unlink.hpp"

#ifdef __cplusplus
Expand Down
94 changes: 0 additions & 94 deletions lib/util/util_lockf.cpp

This file was deleted.

0 comments on commit 8e15cca

Please sign in to comment.