contrib/meshwizard: Various fixes and cleanups
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / functions.sh
index fbb36ebe55a4f60d723dcfc8e119bc036462e94c..f8271498adae0ed34e73c9d6b7c36dfefbc95ecf 100644 (file)
@@ -33,24 +33,11 @@ set_defaults() {
        done
 }
 
-# 1 argument: section to remove
-section_cleanup() {
-       uci -q delete $1 && msg_cleanup $1 || msg_cleanup_error $1
-}
-
 # 3 arguements: 1=config name 2=oldname 3=newname
 section_rename() {
        uci -q rename $1.$2=$3 && msg_rename $1.$2 $1.$3 || msg_rename_error $1.2 $1.$3
 }
 
-msg_cleanup() {
-       echo "    Cleanup: Removed section $1."
-}
-
-msg_cleanup_error() {
-       echo -e "    \033[1mWarning:\033[0m Cleanup of $1 failed."
-}
-
 msg_missing_value() {
        echo -e "    \033[1mWarning:\033[0m Configuration option for $2 is missing in $1."
 }