remove unused endian check code