Skip to content

Commit 8f0c649

Browse files
authored
Remove useless code without any functional changes (#167)
1 parent 5ff94d0 commit 8f0c649

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

box/settings.ini

+2-12
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,8 @@ mode:whitelist
121121
# example : pkg pkgname
122122
init
123123

124-
pkg_list=$(sed -n 's/^pkg \([^ ]*\).*/\1/p' ${pkg_config})
125-
126-
load_pkg_list() {
127-
p=0
128-
for pkg in ${pkg_list}
129-
do
130-
pkgs[$p]=$pkg
131-
((p++))
132-
done
133-
echo ${pkgs[@]}
134-
}
135-
packages_list=($(load_pkg_list))
124+
packages_list=($(sed -n 's/^pkg \([^ ]*\).*/\1/p' ${pkg_config}))
125+
136126
# blacklist / whitelist
137127
proxy_mode=$(sed -n 's/^mode:\([^ ]*\).*/\1/p' ${pkg_config})
138128

0 commit comments

Comments
 (0)