Skip to content

Commit

Permalink
Remove useless code without any functional changes (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
moexiyuki authored Dec 7, 2024
1 parent 5ff94d0 commit 8f0c649
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions box/settings.ini
Original file line number Diff line number Diff line change
Expand Up @@ -121,18 +121,8 @@ mode:whitelist
# example : pkg pkgname
init

pkg_list=$(sed -n 's/^pkg \([^ ]*\).*/\1/p' ${pkg_config})

load_pkg_list() {
p=0
for pkg in ${pkg_list}
do
pkgs[$p]=$pkg
((p++))
done
echo ${pkgs[@]}
}
packages_list=($(load_pkg_list))
packages_list=($(sed -n 's/^pkg \([^ ]*\).*/\1/p' ${pkg_config}))

# blacklist / whitelist
proxy_mode=$(sed -n 's/^mode:\([^ ]*\).*/\1/p' ${pkg_config})

Expand Down

0 comments on commit 8f0c649

Please sign in to comment.