Remove unused functions from sptw.