diff mbox series

[iproute2,3/7] configure: Remove unused function check_prog()

Message ID 20180922212451.327-4-petr.vorel@gmail.com
State Accepted, archived
Delegated to: stephen hemminger
Headers show
Series Minor shell code cleanup | expand

Commit Message

Petr Vorel Sept. 22, 2018, 9:24 p.m. UTC
Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
 configure | 6 ------
 1 file changed, 6 deletions(-)
diff mbox series

Patch

diff --git a/configure b/configure
index 5ef5cd4c..34325f99 100755
--- a/configure
+++ b/configure
@@ -11,12 +11,6 @@  CONFIG=config.mk
 TMPDIR=$(mktemp -d config.XXXXXX)
 trap 'status=$?; rm -rf $TMPDIR; exit $status' EXIT HUP INT QUIT TERM
 
-check_prog()
-{
-    echo -n "$2"
-    command -v $1 >/dev/null 2>&1 && (echo "$3:=y" >> $CONFIG; echo "yes") || (echo "no"; return 1)
-}
-
 check_toolchain()
 {
     : ${PKG_CONFIG:=pkg-config}