From ae9562c6287ced5e31802fb19364c0db329dd605 Mon Sep 17 00:00:00 2001 From: imos Date: Wed, 24 Sep 2014 03:32:58 +0900 Subject: [PATCH] Remove imosh::set_pid. --- imosh | 10 ---------- library/20-pid.sh | 9 --------- 2 files changed, 19 deletions(-) delete mode 100644 library/20-pid.sh diff --git a/imosh b/imosh index 982af76..d71c602 100755 --- a/imosh +++ b/imosh @@ -344,16 +344,6 @@ readonly IMOSH_PARSE_ARGUMENTS=' set -- "${IMOSH_ARGV[@]}" fi' -imosh::set_pid() { - if func::isset BASHPID; then - IMOSH_PID="${BASHPID}" - else - local pid_file="$(mktemp "${__IMOSH_CORE_TMPDIR}/pid.XXXXXX")" - "${SHELL}" -c 'echo "${PPID}"' >"${pid_file}" - IMOSH_PID="$(cat "${pid_file}")" - fi -} - # __IMOSH_FLAGS_TYPE_= # __IMOSH_FLAGS_DESCRIPTION_= # __IMOSH_FLAGS_ALIASES=(from:to ...) diff --git a/library/20-pid.sh b/library/20-pid.sh deleted file mode 100644 index d62b535..0000000 --- a/library/20-pid.sh +++ /dev/null @@ -1,9 +0,0 @@ -imosh::set_pid() { - if func::isset BASHPID; then - IMOSH_PID="${BASHPID}" - else - local pid_file="$(mktemp "${__IMOSH_CORE_TMPDIR}/pid.XXXXXX")" - "${SHELL}" -c 'echo "${PPID}"' >"${pid_file}" - IMOSH_PID="$(cat "${pid_file}")" - fi -}