Wed, 12 Nov 2025 20:26:42 +0100
remove unused function from toolchain.sh
| src/main/resources/make/toolchain.sh | file | annotate | diff | comparison | revisions | |
| test/make/toolchain.sh | file | annotate | diff | comparison | revisions |
--- a/src/main/resources/make/toolchain.sh Wed Nov 12 20:26:10 2025 +0100 +++ b/src/main/resources/make/toolchain.sh Wed Nov 12 20:26:42 2025 +0100 @@ -81,21 +81,6 @@ $1 -o "$TEMP_DIR/checkcc" $CXXFLAGS $LDFLAGS "$TEMP_DIR/test.cpp" 2> /dev/null } -create_libtest_source() -{ - # $1: filename - # $2: optional include - cat > "$TEMP_DIR/$1" << __EOF__ -/* libtest file */ -int main(int argc, char **argv) { - return 0; -} -__EOF__ - if [ -n "$2" ]; then - echo "#include <$2>" >> "$TEMP_DIR/$1" - fi -} - parse_toolchain_properties() { info_file="$1"
--- a/test/make/toolchain.sh Wed Nov 12 20:26:10 2025 +0100 +++ b/test/make/toolchain.sh Wed Nov 12 20:26:42 2025 +0100 @@ -81,21 +81,6 @@ $1 -o "$TEMP_DIR/checkcc" $CXXFLAGS $LDFLAGS "$TEMP_DIR/test.cpp" 2> /dev/null } -create_libtest_source() -{ - # $1: filename - # $2: optional include - cat > "$TEMP_DIR/$1" << __EOF__ -/* libtest file */ -int main(int argc, char **argv) { - return 0; -} -__EOF__ - if [ -n "$2" ]; then - echo "#include <$2>" >> "$TEMP_DIR/$1" - fi -} - parse_toolchain_properties() { info_file="$1"