From f67ddd80c0440c17a4bedbd7241063789062e302 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 20 Jan 2014 15:39:40 -0500 Subject: _ob_local(), _ob_return(): Remove. --- (limited to 'lib') 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 -- cgit v0.9.1