From c621b3ed694e88f877713107b1785ade3b7aebef Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 2 Apr 2018 23:22:29 -0400 Subject: [PATCH] chore: drop unused function --- plugins/00_dokku-standard/subcommands/cleanup | 2 +- plugins/common/functions | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/plugins/00_dokku-standard/subcommands/cleanup b/plugins/00_dokku-standard/subcommands/cleanup index 6403f6bdb..c88a9901a 100755 --- a/plugins/00_dokku-standard/subcommands/cleanup +++ b/plugins/00_dokku-standard/subcommands/cleanup @@ -2,7 +2,7 @@ set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions" -dokku_cleanup_cmd(){ +dokku_cleanup_cmd() { declare desc="cleans up old deployment cruft" local cmd="cleanup" diff --git a/plugins/common/functions b/plugins/common/functions index 240bd215e..f489040e9 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -398,18 +398,6 @@ is_deployed() { fi } -is_container_running() { - declare desc="return 0 if given docker container id is in running state" - local CID=$1 - local CONTAINER_STATUS=$(docker inspect -f '{{.State.Running}}' "$CID" || true) - - if [[ "$CONTAINER_STATUS" == "true" ]]; then - return 0 - else - return 1 - fi -} - is_container_status() { declare desc="return 0 if given docker container id is in given state" local CID=$1