Clean up unused functions (fixes compile warnings).