From 67ad47d0541efb7a2ee1edd34b5a449e4058fafc Mon Sep 17 00:00:00 2001 From: Sebastien Mondet Date: Wed, 14 Nov 2018 17:12:22 -0500 Subject: [PATCH] Remove unused, duplicate function The function `find_log_rules` in `src/bin_node/node_run_command.ml` is an older duplicate of the one in `Logging_unix`. --- src/bin_node/node_run_command.ml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/bin_node/node_run_command.ml b/src/bin_node/node_run_command.ml index 79986303f..14018ca77 100644 --- a/src/bin_node/node_run_command.ml +++ b/src/bin_node/node_run_command.ml @@ -77,18 +77,6 @@ let context_dir data_dir = data_dir // "context" let protocol_dir data_dir = data_dir // "protocol" let lock_file data_dir = data_dir // "lock" -let find_log_rules default = - match Option.try_with (fun () -> Sys.getenv "TEZOS_LOG"), - Option.try_with (fun () -> Sys.getenv "LWT_LOG") - with - | Some rules, None -> "environment variable TEZOS_LOG", Some rules - | None, Some rules -> "environment variable LWT_LOG", Some rules - | None, None -> "configuration file", default - | Some rules, Some _ -> - warn "Both environment variables TEZOS_LOG and LWT_LOG \ - defined, using TEZOS_LOG." ; - "environment varible TEZOS_LOG", Some rules - let init_node ?sandbox ?checkpoint (config : Node_config_file.t) = let patch_context json ctxt = begin