From 3402bb2f7c38285f288a0279635b40198bed46c1 Mon Sep 17 00:00:00 2001 From: Hannes Mehnert Date: Tue, 29 Oct 2024 20:43:39 +0100 Subject: [PATCH] remove no longer used code --- test/dune | 9 --------- test/git_daemon_exists.ml | 9 --------- 2 files changed, 18 deletions(-) delete mode 100644 test/git_daemon_exists.ml diff --git a/test/dune b/test/dune index 819ebe9..ac218dc 100644 --- a/test/dune +++ b/test/dune @@ -17,15 +17,6 @@ (locks p9418) (deps %{bin:mgit})) -(executable - (name git_daemon_exists) - (libraries unix)) - -(rule - (with-stdout-to - git-daemon - (run ./git_daemon_exists.exe))) - (test (name tests) (libraries git-kv alcotest bos mirage-clock-unix lwt.unix git-unix) diff --git a/test/git_daemon_exists.ml b/test/git_daemon_exists.ml deleted file mode 100644 index 851540f..0000000 --- a/test/git_daemon_exists.ml +++ /dev/null @@ -1,9 +0,0 @@ -let git_daemon_exists () = - match Unix.create_process "git" [| "git"; "daemon" |] Unix.stdin Unix.stdout Unix.stderr with - | pid -> - Unix.kill pid Sys.sigint ; true - | exception Unix.Unix_error _ -> false - -let () = - let v = git_daemon_exists () in - Format.printf "%b" v