Remove unused functions

(actually #if 0 // unused function them out)