Skip to content

Commit ed7a681

Browse files
Remove unused code
1 parent be4389b commit ed7a681

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

backends/mediatek/scripts/mtk_build.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ if [ -z "$ANDROID_NDK" ]; then
1818
exit 1
1919
fi
2020

21-
# Check if the NEURON_BUFFER_ALLOCATOR_LIB environment variable is set
22-
if [ -z "$NEURON_BUFFER_ALLOCATOR_LIB" ]; then
23-
echo "Error: NEURON_BUFFER_ALLOCATOR_LIB environment variable is not set." >&2
24-
exit 1
25-
fi
26-
2721
# Create and enter the build directory
2822
# Set build directory
2923
build_dir="cmake-android-out"

examples/mediatek/mtk_build_examples.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ if [ -z "$ANDROID_NDK" ]; then
1919
exit 1
2020
fi
2121

22-
# Check if the NEURON_BUFFER_ALLOCATOR_LIB environment variable is set
23-
if [ -z "$NEURON_BUFFER_ALLOCATOR_LIB" ]; then
24-
echo "Error: NEURON_BUFFER_ALLOCATOR_LIB environment variable is not set." >&2
25-
exit 1
26-
fi
27-
2822
main() {
2923
# Set build directory
3024
local build_dir="cmake-android-out"
@@ -42,7 +36,6 @@ main() {
4236
-DANDROID_NATIVE_API_LEVEL=26 \
4337
-DANDROID_PLATFORM=android-26 \
4438
-DEXECUTORCH_BUILD_NEURON=ON \
45-
-DNEURON_BUFFER_ALLOCATOR_LIB="$NEURON_BUFFER_ALLOCATOR_LIB" \
4639
-B"${build_dir}"
4740

4841

0 commit comments

Comments
 (0)