From 2bdae8f3d047f1042822f4ab1aff1bf5a6c8b6bf Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Wed, 15 Aug 2018 19:01:14 +0000 Subject: [PATCH] Remove duplicated detect-master for local cluster/local/util.sh contains duplicated detect-master() and the first one is unused at all. This removes the first one for the code cleanup. --- cluster/local/util.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cluster/local/util.sh b/cluster/local/util.sh index 4c437f6866..312b7df6eb 100755 --- a/cluster/local/util.sh +++ b/cluster/local/util.sh @@ -18,13 +18,7 @@ function prepare-e2e() { echo "Local doesn't need special preparations for e2e tests" 1>&2 } -# Must ensure that the following ENV vars are set function detect-master { - export KUBE_MASTER_IP="127.0.0.1" - export KUBE_MASTER="localhost" -} - -detect-master() { KUBE_MASTER=localhost KUBE_MASTER_IP=127.0.0.1 KUBE_MASTER_URL="http://${KUBE_MASTER_IP}:8080"