Some dead code as reported by scrutinizer

Signed-off-by: emanuele <emanuele45@gmail.com>