summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/common.sh31
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