diff options
author | P. J. McDermott <pjm@nac.net> | 2014-01-20 15:39:40 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2014-01-20 15:39:40 (EST) |
commit | f67ddd80c0440c17a4bedbd7241063789062e302 (patch) | |
tree | 1342b10e6a6d092028686ceb96dfc479b04148c8 | |
parent | 8d1159dbe468fb0f5f47fa7c388dbf1745cfad80 (diff) |
_ob_local(), _ob_return(): Remove.
-rw-r--r-- | lib/common.sh | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/lib/common.sh b/lib/common.sh index b0c465c..c9fdc22 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -1,6 +1,6 @@ # opkhelper # lib/common -# Functions for stack memory management. +# Functions common to all utilities. # # Copyright (C) 2012 Patrick "P. J." McDermott # @@ -20,35 +20,6 @@ [ -n "${_OH_COMMON_SM}" ] && return 0 _OH_COMMON_SM='true' -_OH_STACK_VARS= -_OH_SAVED_IFS= - -_oh_local() -{ - # Push the variable list onto the stack. - _OH_STACK_VARS="${_OH_STACK_VARS}|${*}" - - # Save the old IFS value, if any, and set it to its default. - _OH_SAVED_IFS="${IFS}" - IFS=' -' -} - -_oh_return() -{ - # Unset the variables at the top of the stack. - IFS=' ' - unset -v ${_OH_STACK_VARS##*|} - - # Pop the variable list from the top of the stack. - _OH_STACK_VARS="${_OH_STACK_VARS%|*}" - - # Restore the saved IFS. - IFS="${_OH_SAVED_IFS}" - - return ${1} -} - oh_init() { ob_use locale |