Remove dead code pointed out by Scrutinizer.

Signed-off-by: Dhananjay Nakrani <dhananjaynakrani@gmail.com>