Skip to content

Commit d0343ae

Browse files
committed
build: remove more unused functions (NFC)
These build-script-impl functions were not used. Simply remove them as they are no longer needed.
1 parent b86fa52 commit d0343ae

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

utils/build-script-impl

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -870,10 +870,6 @@ function false_true() {
870870
fi
871871
}
872872

873-
function cmake_version() {
874-
"${CMAKE}" --version | grep "cmake version" | cut -f 3 -d " "
875-
}
876-
877873
# Sanitize the list of cross-compilation targets.
878874
#
879875
# In the Build/Host/Target paradigm:
@@ -1009,28 +1005,6 @@ function get_stdlib_targets_for_host() {
10091005
fi
10101006
}
10111007

1012-
function should_build_stdlib_target() {
1013-
local stdlib_target=$1
1014-
local host=$2
1015-
if [[ "${BUILD_STDLIB_DEPLOYMENT_TARGETS}" == "all" ]]; then
1016-
echo 1
1017-
else
1018-
# Only build the stdlib targets in 'build-stdlib-deployment-targets'
1019-
local build_list=($BUILD_STDLIB_DEPLOYMENT_TARGETS)
1020-
for t in "${build_list[@]}"; do
1021-
if [[ "${t}" == "${stdlib_target}" ]]; then
1022-
echo 1
1023-
fi
1024-
done
1025-
# As with 'stdlib-deployment-targets', 'build-stdlib-deployment-targets'
1026-
# only applies to the LOCAL_HOST. For cross-tools hosts, always allow
1027-
# their one-and-only stdlib-target to build.
1028-
if [[ $(is_cross_tools_host ${host}) ]] && [[ "${stdlib_target}" == "${host}" ]]; then
1029-
echo 1
1030-
fi
1031-
fi
1032-
}
1033-
10341008
#
10351009
# Calculate source directories for each product.
10361010
#

0 commit comments

Comments
 (0)