Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

emove unused TARGET_DEL_CONF function

  • Loading branch information...
commit ed0b331846c49d47d1aeeb912153454d1d5b2c1d 1 parent 1cd7caf
@Tauop authored
Showing with 0 additions and 24 deletions.
  1. +0 −24 bin/core/target.func
View
24 bin/core/target.func
@@ -251,30 +251,6 @@ if [ "${__TARGET_FUNC__:-}" != 'Loaded' ]; then
return 0;
}
- TARGET_DEL_CONF () {
- local target= var= file=
- if [ $# -ne 2 ]; then
- BAD_ARGUMENTS; return 1;
- fi
-
- target="$1"; var="$2"
- if [ -z "${target}" -o -z "${var}" ]; then
- BAD_ARGUMENTS; return 1;
- fi
-
- target=$( TARGET_REAL "${target}" )
- if [ -z "${target}" ]; then
- ERROR "Target host '${target}' doesn't exist" ; return 1;
- fi
-
- file="${SSHGATE_DIR_TARGETS}/${target}/properties"
- CONF_DEL --conf-file "${file}" "${var}"
- [ -f "${file}" ] && chmod a+r "${file}" # ensure file permissions
-
- private_MAIL_APPEND "Target '${target}' configuration: ${var} removed"
- return 0;
- }
-
# usage: TARGET_GET_CONF <target> <variable>
# desc: Get the <variable> value from the target configuration file
TARGET_GET_CONF () {

0 comments on commit ed0b331

Please sign in to comment.
Something went wrong with that request. Please try again.