Skip to content

Commit 2d377f4

Browse files
committed
disable unused function
1 parent cd2b1e7 commit 2d377f4

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ Provides a list of helper functions.
410410
**pre** that runs before the builtin and **post** that runs after the builtin
411411

412412

413-
- ```decorate_function fn pre post```: decorates the function **fn** with
414-
**pre** that runs before the function and **post** that runs after the function
413+
<!-- - ```decorate_function fn pre post```: decorates the function **fn** with -->
414+
<!-- **pre** that runs before the function and **post** that runs after the function -->
415415

416416
- ```strlist_add name value```: appends **value** to semi-column separated string list
417417
hold by variable **name**

lib.tools

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -45,27 +45,27 @@ EOF
4545
eval "${l_data}"
4646
}
4747

48-
function decorate_function() {
49-
local p_fn=$1; shift
50-
local p_pre=$1; shift
51-
local p_post=$1; shift
48+
# function decorate_function() {
49+
# local p_fn=$1; shift
50+
# local p_pre=$1; shift
51+
# local p_post=$1; shift
5252

53-
if [ ! -z "${p_pre}" ]; then
54-
p_pre="${p_pre} \"\$@\";"
55-
fi
56-
if [ ! -z "${p_post}" ]; then
57-
p_post="${p_post} \"\$@\";"
58-
fi
53+
# if [ ! -z "${p_pre}" ]; then
54+
# p_pre="${p_pre} \"\$@\";"
55+
# fi
56+
# if [ ! -z "${p_post}" ]; then
57+
# p_post="${p_post} \"\$@\";"
58+
# fi
5959

60-
eval "
61-
_inner_$(typeset -f "${p_fn}")
62-
${p_fn}"'() {
63-
'"${p_pre}"'
64-
_inner_'"${p_fn}"' "$@"
65-
local ret=$?
66-
'"${p_post}"'
67-
return "$ret"
68-
}'
60+
# eval "
61+
# _inner_$(typeset -f "${p_fn}")
62+
# ${p_fn}"'() {
63+
# '"${p_pre}"'
64+
# _inner_'"${p_fn}"' "$@"
65+
# local ret=$?
66+
# '"${p_post}"'
67+
# return "$ret"
68+
# }'
6969

70-
export ${p_fn}_decorates="_${l_guid}_${p_fn}"
71-
}
70+
# export ${p_fn}_decorates="_${l_guid}_${p_fn}"
71+
# }

0 commit comments

Comments
 (0)