aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-04-07 10:01:59 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-04-07 10:01:59 +0000
commit63ec4c522fd3696b23c44407195425723e33a96b (patch)
tree6bb177ac726092062b1df2c89b616eeaf5e54a1e /package/base-files
parentfa7d088f184486df61fa78de37d301320426d6b8 (diff)
downloadupstream-63ec4c522fd3696b23c44407195425723e33a96b.tar.gz
upstream-63ec4c522fd3696b23c44407195425723e33a96b.tar.bz2
upstream-63ec4c522fd3696b23c44407195425723e33a96b.zip
base-files: remove config_clear() and list_remove()
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40409 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/lib/functions.sh28
1 files changed, 0 insertions, 28 deletions
diff --git a/package/base-files/files/lib/functions.sh b/package/base-files/files/lib/functions.sh
index cec78c5062..42886b1466 100755
--- a/package/base-files/files/lib/functions.sh
+++ b/package/base-files/files/lib/functions.sh
@@ -34,21 +34,6 @@ list_contains() {
[ "${val%% $str *}" != "$val" ]
}
-list_remove() {
- local var="$1"
- local remove="$2"
- local val
-
- eval "val=\" \${$var} \""
- val1="${val%% $remove *}"
- [ "$val1" = "$val" ] && return
- val2="${val##* $remove }"
- [ "$val2" = "$val" ] && return
- val="${val1## } ${val2%% }"
- val="${val%% }"
- eval "export ${NO_EXPORT:+-n} -- \"$var=\$val\""
-}
-
config_load() {
[ -n "$IPKG_INSTROOT" ] && return 0
uci_load "$@"
@@ -121,19 +106,6 @@ config_unset() {
config_set "$1" "$2" ""
}
-config_clear() {
- local SECTION="$1"
- local oldvar
-
- list_remove CONFIG_SECTIONS "$SECTION"
- export ${NO_EXPORT:+-n} CONFIG_SECTIONS="${SECTION:+$CONFIG_SECTIONS}"
-
- for oldvar in `set | grep ^CONFIG_${SECTION:+${SECTION}_} | \
- sed -e 's/\(.*\)=.*$/\1/'` ; do
- unset $oldvar
- done
-}
-
# config_get <variable> <section> <option> [<default>]
# config_get <section> <option>
config_get() {