From 64b20d8f30cfdeb9452649d4a3b67cffa3440a87 Mon Sep 17 00:00:00 2001 From: Michael Bridgen Date: Wed, 19 Nov 2014 16:20:53 +0000 Subject: [PATCH] Remove redundant shell function This was used before http_call was made, but that function effectively inlines it. --- weave | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/weave b/weave index 270e3778..148bb284 100755 --- a/weave +++ b/weave @@ -139,17 +139,6 @@ destroy_bridge() { run_iptables -t nat -X WEAVE >/dev/null 2>&1 || true } -docker_ip() { - if ! DOCKERIP=$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' $CONTAINER_NAME 2>/dev/null) ; then - echo "Weave is not running." >&2 - exit 1 - fi - if [ -z "$DOCKERIP" ] ; then - echo "Weave is not running." >&2 - exit 1 - fi -} - # the following borrows from https://github.com/jpetazzo/pipework # run args $2 $3 ... as a command in the network namespace of container $1