]> git.tue.mpg.de Git - gsu.git/commitdiff
gui: Make gsu_menu() private.
authorAndre Noll <maan@tuebingen.mpg.de>
Mon, 1 Sep 2014 21:54:09 +0000 (23:54 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 27 Sep 2014 23:01:59 +0000 (23:01 +0000)
Its single caller is _browse(), which is a private function as
well. This patch prepends an underscore to the function name to
indicate that the function is not supposed to be called by application
code.

gui

diff --git a/gui b/gui
index 958c315d18e9bb5a6ee980a69ffeb25adf05f884..b0d70075f15a02a1702a33bdcc8660096abd6b20 100644 (file)
--- a/gui
+++ b/gui
@@ -54,7 +54,7 @@ gsu_msgbox()
        rm -f "$tmp"
 }
 
-gsu_menu()
+_gsu_menu()
 {
        local header="${1:-root}"
        local items="$2"
@@ -108,7 +108,7 @@ _browse()
        local tree="$2" subtree="$3"
 
        while :; do
-               gsu_menu "$header" "$subtree"
+               _gsu_menu "$header" "$subtree"
                (($ret != 0)) && return
                [[ -z "$result" ]] && return
                if [[ "${result%/}" != "$result" ]]; then