Remove useless function of spi