Skip to content

Commit c4cd493

Browse files
committed
pkg-auto: Drop unused functions
These functions were either inlined in those few (one?) place they were used or just replaced. Signed-off-by: Krzesimir Nowak <[email protected]>
1 parent 832d405 commit c4cd493

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

pkg_auto/impl/pkg_auto_lib.sh

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -2901,53 +2901,6 @@ function generate_mention_report_for_package() {
29012901
grep_pkg "${scripts}" "${pkg}" ":(exclude)${ps}" ":(exclude)${co}"
29022902
}
29032903

2904-
# Gets a toplevel update reports directory for a package. This is
2905-
# where occurences and non-ebuild diffs are stored.
2906-
#
2907-
# Params:
2908-
#
2909-
# 1 - package name
2910-
# 2 - name of a variable where the path will be stored
2911-
function update_dir_non_slot() {
2912-
local pkg
2913-
pkg=${1}; shift
2914-
local -n dir_ref=${1}; shift
2915-
2916-
# shellcheck source=for-shellcheck/globals
2917-
source "${WORKDIR}/globals"
2918-
2919-
dir_ref="${REPORTS_DIR}/updates/${pkg}"
2920-
}
2921-
2922-
# Gets a slot specific update reports directory for a package. This is
2923-
# where ebuild diffs are stored.
2924-
#
2925-
# Params:
2926-
#
2927-
# 1 - package name
2928-
# 2 - old slot
2929-
# 3 - new slot
2930-
# 4 - name of a variable where the path will be stored
2931-
function update_dir() {
2932-
local pkg old_s new_s
2933-
pkg=${1}; shift
2934-
old_s=${1}; shift
2935-
new_s=${1}; shift
2936-
local -n dir_ref=${1}; shift
2937-
2938-
# slots may have slashes in them - replace them with "-slash-"
2939-
local slot_dir
2940-
if [[ ${old_s} = "${new_s}" ]]; then
2941-
slot_dir=${old_s//\//-slash-}
2942-
else
2943-
slot_dir="${old_s//\//-slash-}-to-${new_s//\//-slash-}"
2944-
fi
2945-
2946-
local ud_non_slot_dir
2947-
update_dir_non_slot "${pkg}" ud_non_slot_dir
2948-
dir_ref="${ud_non_slot_dir}/${slot_dir}"
2949-
}
2950-
29512904
# Gets a slot-specific directory name for ebuild diffs.
29522905
#
29532906
# Params:

0 commit comments

Comments
 (0)