removed unused code

this code caused compilation errors when compiling for arm64`