Remove unused functions.
Merge branch '#305' of github.com:GalSim-developers/GalSim into #305