remove unused function from toolchain.sh

Wed, 12 Nov 2025 20:26:42 +0100

author
Mike Becker <universe@uap-core.de>
date
Wed, 12 Nov 2025 20:26:42 +0100
changeset 158
10c95fc02326
parent 157
eb788903e8c6
child 159
b0344d89ade6

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"

mercurial