diff options
author | P. J. McDermott <pjm@nac.net> | 2013-08-18 11:19:44 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-08-18 11:19:44 (EDT) |
commit | 6b82e03934750ce1bc2d8c4d4f8ac6f3f4dbff82 (patch) | |
tree | 46aa4a5d5a2804511b4c0d58936a8b7424fe7f36 /lib | |
parent | e3af962c2ed77d26c2b039fadf3779739fabfde2 (diff) |
_ob_local(), _ob_return(): Remove.feature/remove-_ob_local
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lib/common.sh b/lib/common.sh index 174f3ab..3fd3cc5 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -20,35 +20,6 @@ [ -n "${_OB_COMMON_SM}" ] && return 0 _OB_COMMON_SM='true' -_OB_STACK_VARS= -_OB_SAVED_IFS= - -_ob_local() -{ - # Push the variable list onto the stack. - _OB_STACK_VARS="${_OB_STACK_VARS}|${*}" - - # Save the old IFS value, if any, and set it to its default. - _OB_SAVED_IFS="${IFS}" - IFS=' -' -} - -_ob_return() -{ - # Unset the variables at the top of the stack. - IFS=' ' - unset -v ${_OB_STACK_VARS##*|} - - # Pop the variable list from the top of the stack. - _OB_STACK_VARS="${_OB_STACK_VARS%|*}" - - # Restore the saved IFS. - IFS="${_OB_SAVED_IFS}" - - return ${1} -} - _ob_validate_var_name() { case "${1}" in |