The function is not called from any scripts that currently use gsu.
This commit marks it private by prepending an underscore to its name.
export GSU_NODE_NAME_PATTERN='[a-zA-Z_]'
-get_geometry()
+_get_geometry()
{
local x y
result="$(stty size)"
gsu_infobox()
{
- get_geometry
+ _get_geometry
dialog --infobox "$1" $result
}
local items="$2"
local i state opts num=0
- get_geometry
+ _get_geometry
ops="$result 16"
for i in $items; do
let num++
local items="$3"
local i state ops num=0
- get_geometry
+ _get_geometry
ops="$result 16"
for i in $items; do
let num++
{
local g text="$1" init="$2"
- get_geometry
+ _get_geometry
g="$result"
result="$(dialog --inputbox "$text" $g "$init" 3>&1 1>&2 2>&3 3>&-)"
ret="$?"
{
local file="$1"
- get_geometry
+ _get_geometry
dialog --textbox "$file" $result
}
{
local text="$1"
- get_geometry
+ _get_geometry
dialog --yesno "$text" $result
ret=$?
if (($ret == 0)); then
local items="$2"
local i state opts num=0
- get_geometry
+ _get_geometry
opts="$result 16"
for i in $items; do
let num++