summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-07-03 12:18:37 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-07-03 12:18:37 +0200
commitca3e0f60d834d1d9fa57440c134a5ca4332ba394 (patch)
treed555b53e030da2dfa67a98ae876054b0cd94e1f4 /src/network
parent6ed493eed48764ba532c0c365db0e281e8bcd17d (diff)
downloadnetctl-ca3e0f60d834d1d9fa57440c134a5ca4332ba394.tar.gz
netctl-ca3e0f60d834d1d9fa57440c134a5ca4332ba394.tar.xz
Cleanup src/network
quirk() is not used anymore, inarray() doesn't belong in src/network.
Diffstat (limited to 'src/network')
-rw-r--r--src/network22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/network b/src/network
index 20cc4fd..91dc49c 100644
--- a/src/network
+++ b/src/network
@@ -238,28 +238,6 @@ profile_down()
); return $?
}
-## Check if variable is a member of an array
-# $1: the variable to find
-# $2...: the array elements
-inarray()
-{
- local item search="$1"
- shift
- for item in "$@"; do
- if [[ "$item" == "$search" ]]; then
- return 0
- fi
- done
- return 1
-}
-
-## Check if a given quirk is enabled
-# $1: the quirk name
-quirk() {
- inarray "$1" "${QUIRKS[@]}"
- return $?
-}
-
# interface_down interface
# take interface down
#