clean most of build warnings

disable or remove unused functions/variables

Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>