remove unused functions (#313)

* remove unused functions
* Note that we removed unused functions in CHANGELOG.md
pull/321/head^2^2
Josh Rabinowitz 6 years ago committed by GitHub
parent 1bf0fe1c47
commit 6e43cd310f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,6 +4,7 @@
- Fix link to homebrew's git-secret in README.md (#310)
- Update CHANGELOG.md to mention fix for #281 in v0.2.5 (#311)
- Remove unused functions from _git_secret_tools.sh
## Version 0.2.5

@ -173,16 +173,6 @@ function _file_has_line {
}
function _delete_line {
local escaped_path
# shellcheck disable=2001
escaped_path=$(echo "$1" | sed -e 's/[\/&]/\\&/g') # required
local line="$2" # required
sed -i.bak "/$escaped_path/d" "$line"
}
# this sets the global variable 'filename'
# currently this function is only used by 'hide'
@ -195,24 +185,6 @@ function _temporary_file {
}
function _unique_filename {
# First parameter is base-path, second is filename,
# third is optional extension.
local n=0
local base_path="$1"
local result="$2"
while true; do
if [[ ! -f "$base_path/$result" ]]; then
break
fi
n=$(( n + 1 ))
result="${2}-${n}" # calling to the original "$2"
done
echo "$result"
}
# Helper function
@ -629,9 +601,6 @@ function _assert_keychain_contains_emails {
}
function _get_raw_filename {
echo "$(dirname "$1")/$(basename "$1" "$SECRETS_EXTENSION")" | sed -e 's#^\./##'
}
function _get_encrypted_filename {

Loading…
Cancel
Save