Remove some unused functions. Fixes warning.