From e801aff97ff97069ed00ea11cfc8069d83fe8fba Mon Sep 17 00:00:00 2001 From: tearmoon Date: Sat, 2 Dec 2023 19:52:49 +0700 Subject: [PATCH] Remove useless Functions --- box/scripts/box.service | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/box/scripts/box.service b/box/scripts/box.service index 00e58842..a5d72b99 100755 --- a/box/scripts/box.service +++ b/box/scripts/box.service @@ -212,7 +212,6 @@ prepare_clash() { log Error "configuration file ${clash_config} not found" exit 1 else - temp_clash_config_file log Info "config ${clash_config}" fi @@ -300,21 +299,6 @@ prepare_clash() { fi } -temp_clash_config_file() { - clash_template="${box_dir}/clash/template" - temp_clash_config_file="${clash_config}" - - if [ -f "${clash_template}" ]; then - log debug "use template configuration" - cp -f "${clash_template}" "${temp_clash_config_file}.temp" && echo "\n" >> "${temp_clash_config_file}.temp" - sed -n -E '/^proxies:$/,$p' "${clash_config}" >> "${temp_clash_config_file}.temp" - sed -i '/^[[:space:]]*$/d' "${temp_clash_config_file}.temp" - if mv "${temp_clash_config_file}.temp" "${clash_config}"; then - log Info "The merging of the $clash_config and $clash_template files is complete." - fi - fi -} - box_run_bin() { log Info "client-list: [ ${bin_list[*]} ]" log Info "choose: ${bin_name}, start the service."