Skip to content
This repository
Browse code

emove unused TARGET_DEL_CONF function

  • Loading branch information...
commit ed0b331846c49d47d1aeeb912153454d1d5b2c1d 1 parent 1cd7caf
Patrick Guiran authored

Showing 1 changed file with 0 additions and 24 deletions. Show diff stats Hide diff stats

  1. +0 24 bin/core/target.func
24 bin/core/target.func
@@ -251,30 +251,6 @@ if [ "${__TARGET_FUNC__:-}" != 'Loaded' ]; then
251 251 return 0;
252 252 }
253 253
254   - TARGET_DEL_CONF () {
255   - local target= var= file=
256   - if [ $# -ne 2 ]; then
257   - BAD_ARGUMENTS; return 1;
258   - fi
259   -
260   - target="$1"; var="$2"
261   - if [ -z "${target}" -o -z "${var}" ]; then
262   - BAD_ARGUMENTS; return 1;
263   - fi
264   -
265   - target=$( TARGET_REAL "${target}" )
266   - if [ -z "${target}" ]; then
267   - ERROR "Target host '${target}' doesn't exist" ; return 1;
268   - fi
269   -
270   - file="${SSHGATE_DIR_TARGETS}/${target}/properties"
271   - CONF_DEL --conf-file "${file}" "${var}"
272   - [ -f "${file}" ] && chmod a+r "${file}" # ensure file permissions
273   -
274   - private_MAIL_APPEND "Target '${target}' configuration: ${var} removed"
275   - return 0;
276   - }
277   -
278 254 # usage: TARGET_GET_CONF <target> <variable>
279 255 # desc: Get the <variable> value from the target configuration file
280 256 TARGET_GET_CONF () {

0 comments on commit ed0b331

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