[PATCH 22/25] Remove functions which are defined but not used

Remove functions which are defined but not used

Contributed by: Thomas Paviot
Depends on: 20-compile-debug-functions-only-in-debug-mode.patch, 21-remove-unused-local-variable.patch